1 | <?php |
||
20 | class Resolver |
||
21 | { |
||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $controllerPath; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $controllerClass; |
||
31 | |||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | protected $repositoryPath; |
||
36 | |||
37 | /** |
||
38 | * @var Request |
||
39 | */ |
||
40 | protected $request; |
||
41 | |||
42 | /** |
||
43 | * @var Router |
||
44 | */ |
||
45 | protected $router; |
||
46 | |||
47 | /** |
||
48 | * @param Request $request |
||
49 | * @param string $repositoryPath |
||
50 | * @param string $prefix |
||
51 | * @param \Pimf\Router $router |
||
52 | * |
||
53 | * @throws \Pimf\Resolver\Exception If no controller found at the repository path |
||
54 | */ |
||
55 | public function __construct(\Pimf\Request $request, $repositoryPath = '/Controller', $prefix = 'Pimf\\', $router) |
||
94 | |||
95 | /** |
||
96 | * @param Environment $env |
||
97 | * @param Logger $logger |
||
98 | * @param EntityManager $em |
||
99 | * |
||
100 | * @return \Pimf\Controller\Base |
||
101 | * @throws \Pimf\Resolver\Exception If no controller specified or no controller found at the repository. |
||
102 | */ |
||
103 | public function process(Environment $env, $em, Logger $logger) |
||
117 | } |
||
118 |