public function getFactory($name)
    {
        if (false === $this->has($name)) {
            if (class_exists($name)) {
                $this->resolve($name);
            } else {
                throw new NotFoundException('Service "' . $name . '" is unknown');
            }
        }

        if (true === isset($this->map[$class = ltrim($name, '/')])) {
            $name = $this->map[$class];
        }

        return $this->payload[$name];
    }
public function getFactory($name)
    {
        if (false === $this->has($name)) {
            if (class_exists($name)) {
                $this->resolve($name);
            } else {
                throw new NotFoundException('Service "' . $name . '" is unknown');
            }
        }

        if (true === isset($this->map[$class = ltrim($name, '/')])) {
            $name = $this->map[$class];
        }

        return $this->payload[$name];
    }
public function getFactory ( $ name ) { if ( false === $ this -> has ( $ name ) ) { if ( class_exists ( $ name ) ) { $ this -> resolve ( $ name ) ; } else { throw new NotFoundException ( 'Service "' . $ name . '" is unknown' ) ; } } if ( true === isset ( $ this -> map [ $ class = ltrim ( $ name , '/' ) ] ) ) { $ name = $ this -> map [ $ class ] ; } return $ this -> payload [ $ name ] ; }
Fetch factory for given service or class from container

@param string $name service identifier or class name
@throws \ReflectionException
@throws \Janeiro\Di\Exception
@throws \Janeiro\Di\NotFoundException
@return \Janeiro\Di\Factory
Fetch factory for given service or class from container