-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy pathTwigSetProvider.php
More file actions
58 lines (54 loc) · 1.61 KB
/
TwigSetProvider.php
File metadata and controls
58 lines (54 loc) · 1.61 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
<?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\ComposerTriggeredSet;
final class TwigSetProvider implements SetProviderInterface
{
/**
* @return SetInterface[]
*/
public function provide(): array
{
return [
new ComposerTriggeredSet(
SetGroup::TWIG,
'twig/twig',
'1.12',
__DIR__ . '/../../../config/sets/twig/twig112.php'
),
new ComposerTriggeredSet(
SetGroup::TWIG,
'twig/twig',
'1.27',
__DIR__ . '/../../../config/sets/twig/twig127.php'
),
new ComposerTriggeredSet(
SetGroup::TWIG,
'twig/twig',
'1.34',
__DIR__ . '/../../../config/sets/twig/twig134.php'
),
new ComposerTriggeredSet(
SetGroup::TWIG,
'twig/twig',
'1.40',
__DIR__ . '/../../../config/sets/twig/twig140.php'
),
new ComposerTriggeredSet(
SetGroup::TWIG,
'twig/twig',
'2.0',
__DIR__ . '/../../../config/sets/twig/twig20.php'
),
new ComposerTriggeredSet(
SetGroup::TWIG,
'twig/twig',
'2.4',
__DIR__ . '/../../../config/sets/twig/twig24.php'
),
];
}
}