src/objects/install/NamespaceResolver.php
public function loadNamespaces()
    {
        $data       = json_decode(file_get_contents(base_path('composer.json')), JSON_OBJECT_AS_ARRAY);
        $namespaces = array_get($data, 'autoload.psr-4');
        $this->setNamespaces($namespaces);
        return $this;
    }
public function loadNamespaces()
    {
        $data       = json_decode(file_get_contents(base_path('composer.json')), JSON_OBJECT_AS_ARRAY);
        $namespaces = array_get($data, 'autoload.psr-4');
        $this->setNamespaces($namespaces);
        return $this;
    }
public function loadNamespaces ( ) { $ data = json_decode ( file_get_contents ( base_path ( 'composer.json' ) ) , JSON_OBJECT_AS_ARRAY ) ; $ namespaces = array_get ( $ data , 'autoload.psr-4' ) ; $ this -> setNamespaces ( $ namespaces ) ; return $ this ; }
Loads namespaces from composer.json

@return $this
Loads namespaces from composer . json