sources/Generators/GeneratorCommandTrait.php
protected function getRootDirectory()
    {
        if ($this->addon) {
            $directories = $this->addon->config('addon.directories');

            if (! $directories) {
                $directories = ['classes'];
            }

            return $this->addon->path($directories[0]);
        }
        else {
            return parent::getRootDirectory();
        }
    }
protected function getRootDirectory()
    {
        if ($this->addon) {
            $directories = $this->addon->config('addon.directories');

            if (! $directories) {
                $directories = ['classes'];
            }

            return $this->addon->path($directories[0]);
        }
        else {
            return parent::getRootDirectory();
        }
    }
protected function getRootDirectory ( ) { if ( $ this -> addon ) { $ directories = $ this -> addon -> config ( 'addon.directories' ) ; if ( ! $ directories ) { $ directories = [ 'classes' ] ; } return $ this -> addon -> path ( $ directories [ 0 ] ) ; } else { return parent :: getRootDirectory ( ) ; } }
Get the directory path for root namespace.

@return string
Get the directory path for root namespace .