|
@@ -11,14 +11,14 @@ |
|
|
block discarded – undo |
|
11
|
11
|
*/ |
|
12
|
12
|
class DoctrineRouter extends Router { |
|
13
|
13
|
private $entitiyManager; |
|
14
|
|
- public function __construct(AccessControl $accessControl, Throttle $throttle, Configuration $formatsConfig, $endpointNamespace = '', EntityManager $entityManager){ |
|
|
14
|
+ public function __construct(AccessControl $accessControl, Throttle $throttle, Configuration $formatsConfig, $endpointNamespace = '', EntityManager $entityManager) { |
|
15
|
15
|
parent::__construct($accessControl, $throttle, $formatsConfig, $endpointNamespace); |
|
16
|
16
|
$this->entityManager = $entityManager; |
|
17
|
17
|
} |
|
18
|
|
- private function executeEndpoint($fullEndpoint, Request $request){ |
|
|
18
|
+ private function executeEndpoint($fullEndpoint, Request $request) { |
|
19
|
19
|
$endPoint = new $fullEndpoint($request); |
|
20
|
20
|
|
|
21
|
|
- if($endPoint instanceof DoctrineEndpoint){ |
|
|
21
|
+ if ($endPoint instanceof DoctrineEndpoint) { |
|
22
|
22
|
$endPoint->setEntityManager($this->entitiyManager); |
|
23
|
23
|
} |
|
24
|
24
|
|
Please login to merge, or discard this patch.