Ejemplo n.º 1
0
 public function __construct(RouteRepositoryInterface $routeRepository, ManagerRegistry $managerRegistry, CandidatesInterface $candidatesStrategy, $className)
 {
     $this->routeRepository = $routeRepository;
     $this->internalRoutesCache = [];
     $this->candidatesStrategy = $candidatesStrategy;
     parent::__construct($managerRegistry, $candidatesStrategy, $className);
 }
Ejemplo n.º 2
0
 public function testGetAllRoutes()
 {
     $this->objectRepositoryMock->expects($this->once())->method('findBy')->with(array(), null, 42)->will($this->returnValue(array($this->routeMock)));
     $routeProvider = new RouteProvider($this->managerRegistryMock, $this->candidatesMock, 'Route');
     $routeProvider->setManagerName('default');
     $routeProvider->setRouteCollectionLimit(42);
     $routes = $routeProvider->getRoutesByNames(null);
     $this->assertCount(1, $routes);
 }
Ejemplo n.º 3
0
 public function __construct(ManagerRegistry $managerRegistry, CandidatesInterface $candidatesStrategy, $className)
 {
     parent::__construct($managerRegistry, $candidatesStrategy, $className);
     $this->candidatesStrategy = $candidatesStrategy;
 }