Zend\Mvc\Controller\LazyControllerAbstractFactory::canCreate PHP Method

canCreate() public method

{@inheritDoc}
public canCreate ( Interop\Container\ContainerInterface $container, $requestedName )
$container Interop\Container\ContainerInterface
    public function canCreate(ContainerInterface $container, $requestedName)
    {
        if (!class_exists($requestedName)) {
            return false;
        }
        return in_array(DispatchableInterface::class, class_implements($requestedName), true);
    }
LazyControllerAbstractFactory