kahlan\cli\Kahlan::_namespaces PHP Method

_namespaces() protected method

The default 'namespace' filter.
protected _namespaces ( )
    protected function _namespaces()
    {
        return Filter::on($this, 'namespaces', [], function ($chain) {
            $paths = $this->commandLine()->get('spec');
            foreach ($paths as $path) {
                $path = realpath($path);
                $namespace = basename($path) . '\\';
                $this->autoloader()->add($namespace, dirname($path));
            }
        });
    }