public function canCreate(ContainerInterface $container, $requestedName)
    {
        $namespace = $this->getConfig($container)['namespace'];
        $ar = explode('_', $requestedName);

        return (count($ar) >= 2 && array_key_exists($ar[0], $namespace) && $ar[1] === 'model');
    }
public function canCreate(ContainerInterface $container, $requestedName)
    {
        $namespace = $this->getConfig($container)['namespace'];
        $ar = explode('_', $requestedName);

        return (count($ar) >= 2 && array_key_exists($ar[0], $namespace) && $ar[1] === 'model');
    }
public function canCreate ( ContainerInterface $ container , $ requestedName ) { $ namespace = $ this -> getConfig ( $ container ) [ 'namespace' ] ; $ ar = explode ( '_' , $ requestedName ) ; return ( count ( $ ar ) >= 2 && array_key_exists ( $ ar [ 0 ] , $ namespace ) && $ ar [ 1 ] === 'model' ) ; }
Determine if we can create a Model with name

{@inheritDoc}
@see \Zend\ServiceManager\Factory\AbstractFactoryInterface::canCreate()
Determine if we can create a Model with name