Skip to content

Commit

Permalink
New method for retrieving available extension names
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Mar 19, 2017
1 parent 971278e commit ce6e244
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Bootstrap.php
Expand Up @@ -179,6 +179,28 @@ public function getCustomPaths( $section )
}


/**
* Returns the available extensions
*
* @return array List of available extension names
*/
public function getExtensions()
{
$list = [];

foreach( $this->manifests as $path => $manifest )
{
if( isset( $manifest['name'] ) && $manifest['name'] != '' ) {
$list[] = $manifest['name'];
} else {
$list[] = basename( $path );
}
}

return $list;
}


/**
* Returns the list of paths where setup tasks are stored.
*
Expand Down

0 comments on commit ce6e244

Please sign in to comment.