@param string $space
@param string $name

@return string
199100
public function spacePath($space, $name = null)
    {
        $path = $space ? array_get($this->spacePaths, $space) : $this->path();

        if ($path === null) {
            throw new UnexpectedValueException("addon space '{$space}' is not found.");
        }

        if ($name !== null) {
            return $path.'/'.$name;
        } else {
            return $path;
        }
    }
172750
protected function getPath($name)
    {
        $name = str_replace($this->container->getNamespace(), '', $name);

        return $this->container['path'] .DS .str_replace('\\', DS, $name) .'.php';
    }
706035
protected function getMethod($name) 
    {
        if (isset(self::$_methods[$name])) {
            return $name;
        }

        if (isset(self::$_methods['str_'.$name])) {
            return 'str_'.$name;
        }
        
        $unspaced = str_replace('_', '', $name);
        
        if (isset(self::$_methods[$unspaced])) {
            return $unspaced;
        }
        
        if (isset(self::$_methods['str'.$unspaced])) {
            return 'str'.$unspaced;
        }
        
        $uncamel = strtolower(preg_replace("/([A-Z])/", "_$1", $name));

        if (isset(self::$_methods[$uncamel])) {
            return $uncamel;
        }

        if (isset(self::$_methods['str_'.$uncamel])) {
            return 'str_'.$uncamel;
        }
        
        $unspaced = str_replace('_', '', $uncamel);
        
        if (isset(self::$_methods[$unspaced])) {
            return $unspaced;
        }
        
        if (isset(self::$_methods['str'.$unspaced])) {
            return 'str'.$unspaced;
        }

        return $name;
    }
1128003
public function get(string $name): string {
        if (!isset($this->get[$name])) {
            return "";
        }
        return $this->get[$name];
    }
367742
public static function get(string $name): ?string
    {
        $data = Session::get($name, null, self::$namespace);
        if (is_array($data) && array_key_exists('token', $data)) {
            return $data['token'];
        }
        return null;
    }
549973
public function generateUrl(string $name, array $parameters = []): string
    {
        $definition = $this->provider->getRouteDefinitionByName($name);
        return $definition->formatUrl($parameters);
    }
753175
private function methodInvoke($name, $namespace)
    {
        $name = ucfirst($name);

        $this->uses[] = $namespace . '\\' . $name;

        $namespace = '\\' . $namespace . '\\';

        $parameters = [
            new ParameterGenerator(
                'command', $namespace . $name
            ),
        ];

        return new MethodGenerator(
            '__invoke',
            $parameters,
            MethodGenerator::FLAG_PUBLIC,
            '',
            new DocBlockGenerator(
                'Handle command',
                null,
                [
                    new ParamTag('command', [ $namespace . $name]),
                ]
            )
        );
    }
908971
protected function parseName($name)
    {
        $rootNamespace = $this->container->getNamespace();

        if (Str::startsWith($name, $rootNamespace)) {
            return $name;
        }

        if (Str::contains($name, '/')) {
            $name = str_replace('/', '\\', $name);
        }

        return $this->parseName($this->getDefaultNamespace(trim($rootNamespace, '\\')) .'\\' .$name);
    }
784173
public function server(string $name): string {
        if (!isset($this->server[$name])) {
            return "";
        }
        return $this->server[$name];
    }
1019017
protected static function _namespaceIsset($namespace, $name = null)
    {
        if (self::$_readable === false) {
            /**
             * @see Zend_Session_Exception
             */
            require_once 'Zend/Session/Exception.php';
            throw new Zend_Session_Exception(self::_THROW_NOT_READABLE_MSG);
        }

        if ($name === null) {
            return ( isset($_SESSION[$namespace]) || isset(self::$_expiringData[$namespace]) );
        } else {
            return ( isset($_SESSION[$namespace][$name]) || isset(self::$_expiringData[$namespace][$name]) );
        }
    }
1198805
protected function getModelNamespace(string $name):string
    {
        if ($this->option('model')) {
            return $this->option('model');
        }

        return 'App\\' . str_replace('Transformer', '', $name);
    }
75876
protected function getForm($name)
    {
        if (!isset($this->form[$name])) {
            $this->form[$name] = $this->getServiceLocator()
                    ->get($this->getModuleNamespace() . '\Form\\' . $name);
        }
        return $this->form[$name];
    }
849886
protected function parseNamespacedName($name)
    {
        $segments = explode(static::HINT_PATH_DELIMITER, $name);
        if (count($segments) != 2) {
            throw new InvalidArgumentException("View [$name] has an invalid name.");
        }
        if (!isset($this->paths[$segments[0]]) || count($this->paths[$segments[0]]) < 1) {
            throw new InvalidArgumentException("No path defined for namespace [{$segments[0]}].");
        }
        return $segments;
    }
138774
public function getValue($name, $namespace = self::DEFAULT_NAMESPACE)
    {
        return isset($this->values[$namespace][$name]) ? $this->values[$namespace][$name] : null;
    }
598926
public function createNamespace(string $name): SessionInterface
    {
        $name = $this->getNamespacedKey($name);
        return new SessionNamespace($name, $this->session);
    }
400392
public static function uuid5(string $namespace, string $name): string
    {
        $bytes = static::getBytes($namespace);

        $hash = \sha1($bytes . $name);

        return static::uuidFromHash($hash, 5);
    }
319648
protected function findNamespacedView($name)
    {
        list($namespace, $view) = $this->parseNamespaceSegments($name);
        
        $this->addThemeNamespaceHints($namespace);

        return $this->findInPaths($view, $this->hints[$namespace]);
    }