-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy pathSymfonySetProvider.php
More file actions
63 lines (56 loc) · 2.01 KB
/
SymfonySetProvider.php
File metadata and controls
63 lines (56 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
declare(strict_types=1);
namespace Rector\Symfony\Set\SetProvider;
use Rector\Set\Contract\SetInterface;
use Rector\Set\Contract\SetProviderInterface;
use Rector\Set\Enum\SetGroup;
use Rector\Set\ValueObject\Set;
final class SymfonySetProvider implements SetProviderInterface
{
/**
* @return SetInterface[]
*/
public function provide(): array
{
return [
new Set(SetGroup::SYMFONY, 'Configs', __DIR__ . '/../../../config/sets/symfony/configs.php'),
new Set(
SetGroup::SYMFONY,
'Code Quality',
__DIR__ . '/../../../config/sets/symfony/symfony-code-quality.php'
),
new Set(
SetGroup::SYMFONY,
'Constructor Injection',
__DIR__ . '/../../../config/sets/symfony/symfony-constructor-injection.php'
),
new Set(
SetGroup::SYMFONY,
'SwiftMailer to Symfony Mailer',
__DIR__ . '/../../../config/sets/swiftmailer/swiftmailer-to-symfony-mailer.php'
),
// attributes
new Set(
SetGroup::ATTRIBUTES,
'FOS Rest',
__DIR__ . '/../../../config/sets/fosrest/annotations-to-attributes.php'
),
new Set(SetGroup::ATTRIBUTES, 'JMS', __DIR__ . '/../../../config/sets/jms/annotations-to-attributes.php'),
new Set(
SetGroup::ATTRIBUTES,
'Sensiolabs',
__DIR__ . '/../../../config/sets/sensiolabs/annotations-to-attributes.php'
),
new Set(
SetGroup::ATTRIBUTES,
'Symfony',
__DIR__ . '/../../../config/sets/symfony/annotations-to-attributes.php'
),
new Set(
SetGroup::ATTRIBUTES,
'Symfony Validator',
__DIR__ . '/../../../config/sets/symfony/symfony5/symfony52-validator-attributes.php'
),
];
}
}