Skip to content

Commit

Permalink
Merge branch 'qa/12'
Browse files Browse the repository at this point in the history
Close #12
  • Loading branch information
michalbundyra committed Apr 9, 2020
2 parents 7b7499a + df3593d commit 3fbd06b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Factory/RestControllerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function __invoke(ContainerInterface $container, $requestedName, array $o
$identifier = $config['identifier'];
}

$controllerClass = isset($config['controller_class']) ? $config['controller_class'] : 'Laminas\ApiTools\Rest\RestController';
$controllerClass = isset($config['controller_class']) ? $config['controller_class'] : RestController::class;
$controller = new $controllerClass($identifier);

if (! $controller instanceof RestController) {
Expand Down

0 comments on commit 3fbd06b

Please sign in to comment.