Skip to content

Commit

Permalink
kick of DoctrineSetProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jun 25, 2024
1 parent e5736dd commit a85792c
Showing 1 changed file with 63 additions and 3 deletions.
66 changes: 63 additions & 3 deletions src/Set/SetProvider/DoctrineSetProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

use Rector\Set\Contract\SetInterface;
use Rector\Set\Contract\SetProviderInterface;
use Rector\Set\Enum\SetGroup;
use Rector\Set\ValueObject\ComposerTriggeredSet;
use Rector\Set\ValueObject\Set;

/**
* @api collected in core
Expand All @@ -19,13 +21,71 @@ final class DoctrineSetProvider implements SetProviderInterface
public function provide(): array
{
return [
new Set(SetGroup::DOCTRINE, 'Code Quality', __DIR__ . '/../../../config/sets/doctrine-code-quality.php'),
new ComposerTriggeredSet(
'doctrine',
SetGroup::DOCTRINE,
'doctrine/common',
'2.10',
'2.0',
__DIR__ . '/../../../config/sets/doctrine-common-20.php'
),
// @todo fill rest
new ComposerTriggeredSet(
SetGroup::DOCTRINE,
'doctrine/collection',
'2.2',
__DIR__ . '/../../../config/sets/doctrine-collection-22.php',
),
new ComposerTriggeredSet(
SetGroup::DOCTRINE,
'doctrine/doctrine-bundle',
'2.10',
__DIR__ . '/../../../config/sets/doctrine-bundle-210.php',
),
new ComposerTriggeredSet(
SetGroup::DOCTRINE,
'doctrine/dbal',
'3.0',
__DIR__ . '/../../../config/sets/doctrine-dbal-30.php',
),
new ComposerTriggeredSet(
SetGroup::DOCTRINE,
'doctrine/dbal',
'4.0',
__DIR__ . '/../../../config/sets/doctrine-dbal-40.php',
),
new ComposerTriggeredSet(
SetGroup::DOCTRINE,
'doctrine/dbal',
'2.10',
__DIR__ . '/../../../config/sets/doctrine-dbal-210.php',
),
new ComposerTriggeredSet(
SetGroup::DOCTRINE,
'doctrine/dbal',
'2.11',
__DIR__ . '/../../../config/sets/doctrine-dbal-211.php',
),
new ComposerTriggeredSet(
SetGroup::DOCTRINE,
'doctrine/orm',
'2.5',
__DIR__ . '/../../../config/sets/doctrine-orm-25.php',
),
new ComposerTriggeredSet(
SetGroup::DOCTRINE,
'doctrine/orm',
'2.13',
__DIR__ . '/../../../config/sets/doctrine-orm-213.php',
),
new ComposerTriggeredSet(
SetGroup::DOCTRINE,
'doctrine/orm',
'2.14',
__DIR__ . '/../../../config/sets/doctrine-orm-214.php',
),

new Set(SetGroup::ATTRIBUTES, 'Doctrine ORM', __DIR__ . '/../../../config/sets/attributes/doctrine.php'),
new Set(SetGroup::ATTRIBUTES, 'Gedmo', __DIR__ . '/../../../config/sets/attributes/gedmo.php'),
new Set(SetGroup::ATTRIBUTES, 'MongoDB', __DIR__ . '/../../../config/sets/attributes/mongodb.php'),
];
}
}

0 comments on commit a85792c

Please sign in to comment.