|
3 | 3 | declare(strict_types=1); |
4 | 4 |
|
5 | 5 | /* |
6 | | - * This file is part of the SkipExtension package. |
| 6 | + * This file is part of the ExcludeSpecificationsExtension package. |
7 | 7 | * |
8 | 8 | * (c) Kamil Kokot <kamil@kokot.me> |
9 | 9 | * |
10 | 10 | * For the full copyright and license information, please view the LICENSE |
11 | 11 | * file that was distributed with this source code. |
12 | 12 | */ |
13 | 13 |
|
14 | | -namespace FriendsOfBehat\SkipExtension\ServiceContainer; |
| 14 | +namespace FriendsOfBehat\ExcludeSpecificationsExtension\ServiceContainer; |
15 | 15 |
|
16 | 16 | use Behat\Testwork\ServiceContainer\Extension; |
17 | 17 | use Behat\Testwork\ServiceContainer\ExtensionManager; |
18 | | -use FriendsOfBehat\SkipExtension\Locator\SkipAwareSpecificationLocator; |
| 18 | +use FriendsOfBehat\ExcludeSpecificationsExtension\Locator\ExcludingSpecificationLocator; |
19 | 19 | use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; |
20 | 20 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
21 | 21 | use Symfony\Component\DependencyInjection\Definition; |
22 | 22 | use Symfony\Component\DependencyInjection\Reference; |
23 | 23 |
|
24 | | -final class SkipExtension implements Extension |
| 24 | +final class ExcludeSpecificationsExtension implements Extension |
25 | 25 | { |
26 | 26 | /** |
27 | 27 | * {@inheritdoc} |
28 | 28 | */ |
29 | 29 | public function getConfigKey(): string |
30 | 30 | { |
31 | | - return 'fob_skip'; |
| 31 | + return 'fob_exclude_specifications'; |
32 | 32 | } |
33 | 33 |
|
34 | 34 | /** |
@@ -58,15 +58,15 @@ public function configure(ArrayNodeDefinition $builder): void |
58 | 58 | */ |
59 | 59 | public function load(ContainerBuilder $container, array $config): void |
60 | 60 | { |
61 | | - $definition = new Definition(SkipAwareSpecificationLocator::class, [ |
62 | | - new Reference('specifications.locator.filesystem_feature.skip_aware.inner'), |
| 61 | + $definition = new Definition(ExcludingSpecificationLocator::class, [ |
| 62 | + new Reference('specifications.locator.filesystem_feature.excluding.inner'), |
63 | 63 | $this->getAbsoluteSkippedPaths($config['features'], $container->getParameter('paths.base')) |
64 | 64 | ]); |
65 | 65 |
|
66 | 66 | $definition->setDecoratedService('specifications.locator.filesystem_feature'); |
67 | 67 | $definition->setPublic(false); |
68 | 68 |
|
69 | | - $container->setDefinition('specifications.locator.filesystem_feature.skip_aware', $definition); |
| 69 | + $container->setDefinition('specifications.locator.filesystem_feature.excluding', $definition); |
70 | 70 | } |
71 | 71 |
|
72 | 72 | /** |
|
0 commit comments