Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
],
"license": "MIT",
"require": {
"php": ">=7.2",
"doctrine/doctrine-bundle": "^1.0 || ^2.0",
"php": ">=8.2",
"doctrine/doctrine-bundle": "^1.0 || ^2.0 || ^3.0",
"setono/doctrine-orm-batcher": "^0.6",
"symfony/config": "^4.4 || ^5.0 || ^6.0",
"symfony/dependency-injection": "^4.4 || ^5.0 || ^6.0",
"symfony/framework-bundle": "^4.4 || ^5.0 || ^6.0"
"symfony/config": "^5.4 || ^6.4 || ^7.4 || ^8.0",
"symfony/dependency-injection": "^5.4 || ^6.4 || ^7.4 || ^8.0",
"symfony/framework-bundle": "^5.4 || ^6.4 || ^7.4 || ^8.0"
},
"require-dev": {
"localheinz/composer-normalize": "^2.13",
Expand Down
28 changes: 28 additions & 0 deletions ecs.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

declare(strict_types=1);

use PhpCsFixer\Fixer\Import\NoUnusedImportsFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;

return ECSConfig::configure()
->withPaths([
__DIR__ . '/src',
__DIR__ . '/tests',
])

// add a single rule
->withRules([
NoUnusedImportsFixer::class,
])

// add sets - group of rules, from easiest to more complex ones
// uncomment one, apply one, commit, PR, merge and repeat
//->withPreparedSets(
// spaces: true,
// namespaces: true,
// docblocks: true,
// arrays: true,
// comments: true,
//)
;
4 changes: 2 additions & 2 deletions src/DependencyInjection/SetonoDoctrineORMBatcherExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ final class SetonoDoctrineORMBatcherExtension extends Extension
/**
* @throws Exception
*/
public function load(array $config, ContainerBuilder $container): void
public function load(array $configs, ContainerBuilder $container): void
{
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../config'));

$loader->load('services.xml');
}
Expand Down
5 changes: 0 additions & 5 deletions src/SetonoDoctrineORMBatcherBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,8 @@

namespace Setono\DoctrineORMBatcherBundle;

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;

final class SetonoDoctrineORMBatcherBundle extends Bundle
{
public function build(ContainerBuilder $container): void
{
parent::build($container);
}
}
File renamed without changes.