1 | <?php |
||
18 | class RoutingProvider implements ProviderInterface |
||
19 | { |
||
20 | const SLYTHERIN_CONTAINER = 'Rougin\Slytherin\Container\Container'; |
||
21 | |||
22 | const SLYTHERIN_ROUTER = 'Rougin\Slytherin\Routing\RouterInterface'; |
||
23 | |||
24 | const ZAPHEUS_ROUTER = 'Zapheus\Routing\RouterInterface'; |
||
25 | |||
26 | /** |
||
27 | * @var \Rougin\Slytherin\Routing\RouterInterface|null |
||
28 | */ |
||
29 | protected $router; |
||
30 | |||
31 | /** |
||
32 | * Initializes the provider instance. |
||
33 | * |
||
34 | * @param \Rougin\Slytherin\Routing\RouterInterface|null $router |
||
35 | */ |
||
36 | 3 | public function __construct(RouterInterface $router = null) |
|
40 | |||
41 | /** |
||
42 | * Registers the bindings in the container. |
||
43 | * |
||
44 | * @param \Zapheus\Container\WritableInterface $container |
||
45 | * @return \Zapheus\Container\ContainerInterface |
||
46 | */ |
||
47 | 3 | public function register(WritableInterface $container) |
|
67 | } |
||
68 |