Skip to content

Commit abe8ef2

Browse files
committed
services fix
1 parent 14dc59b commit abe8ef2

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

DependencyInjection/Compiler/GateKeeperCompilerPass.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ public function process(ContainerBuilder $container)
2828
}
2929

3030
$definition = $container->getDefinition('gatekeeper');
31+
$definition->addArgument(new Reference($container->getParameter('gatekeeper.repository.service')));
32+
3133
$taggedServices = $container->findTaggedServiceIds('gatekeeper.access');
3234

3335
foreach ($taggedServices as $id => $attributes)

DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace ZL\GateKeeperBundle\DependencyInjection;
3+
namespace GateKeeperBundle\DependencyInjection;
44

55
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
66
use Symfony\Component\Config\Definition\ConfigurationInterface;

DependencyInjection/GateKeeperExtension.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace GateKeeperBundle\DependencyInjection;
44

5-
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Configuration;
65
use Symfony\Component\DependencyInjection\ContainerBuilder;
76
use Symfony\Component\Config\FileLocator;
87
use Symfony\Component\HttpKernel\DependencyInjection\Extension;

Resources/config/services.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,10 @@ parameters:
66
services:
77
gatekeeper:
88
class: %gatekeeper.class%
9-
arguments: [@gatekeeper.repository]
109

1110
gatekeeper.repository.dummy:
1211
class: GateKeeper\Repository\DummyRepository
1312

14-
gatekeeper.repository:
15-
alias: %gatekeeper.repository.service%
16-
1713
gatekeeper.access.allow:
1814
public: false
1915
class: %gatekeeper.access.allow.class%

0 commit comments

Comments
 (0)