use Symfony\Component\HttpFoundation\Request;
/**
- * ControllerResolver.
- *
* This implementation uses the '_controller' request attribute to determine
* the controller to execute and uses the request attributes to determine
* the controller method arguments.
*/
private $supportsScalarTypes;
- /**
- * Constructor.
- *
- * @param LoggerInterface $logger A LoggerInterface instance
- */
public function __construct(LoggerInterface $logger = null)
{
$this->logger = $logger;
}
if (2 !== count($callable)) {
- return sprintf('Invalid format for controller, expected array(controller, method) or controller::method.');
+ return 'Invalid format for controller, expected array(controller, method) or controller::method.';
}
list($controller, $method) = $callable;