12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- namespace Symfony\Component\Routing\Loader\DependencyInjection;
- use Symfony\Component\DependencyInjection\ContainerInterface;
- use Symfony\Component\Routing\Loader\ObjectRouteLoader;
- class ServiceRouterLoader extends ObjectRouteLoader
- {
-
- private $container;
- public function __construct(ContainerInterface $container)
- {
- $this->container = $container;
- }
- protected function getServiceObject($id)
- {
- return $this->container->get($id);
- }
- }
|