src/Framework/Provider/ExtensionServiceProvider.php
public function getExtensions(Container $app)
    {
        $directories = $this->findExtensionsDirectories($app);

        foreach ($directories as $directory) {
            $extensionName                                  = $directory->getRelativePathname();
            $this->extensions[$extensionName]['name']       = $extensionName;
            $this->extensions[$extensionName]['pathName']   = $directory->getPathName();
        }

        return $this->extensions;
    }
public function getExtensions(Container $app)
    {
        $directories = $this->findExtensionsDirectories($app);

        foreach ($directories as $directory) {
            $extensionName                                  = $directory->getRelativePathname();
            $this->extensions[$extensionName]['name']       = $extensionName;
            $this->extensions[$extensionName]['pathName']   = $directory->getPathName();
        }

        return $this->extensions;
    }
public function getExtensions ( Container $ app ) { $ directories = $ this -> findExtensionsDirectories ( $ app ) ; foreach ( $ directories as $ directory ) { $ extensionName = $ directory -> getRelativePathname ( ) ; $ this -> extensions [ $ extensionName ] [ 'name' ] = $ extensionName ; $ this -> extensions [ $ extensionName ] [ 'pathName' ] = $ directory -> getPathName ( ) ; } return $ this -> extensions ; }
Return an array of extensions

@param Container $app

@return array
Return an array of extensions