Skip to content

Commit

Permalink
Prepare v2.1.5 release.
Browse files Browse the repository at this point in the history
Signed-off-by: crynobone <crynobone@gmail.com>
  • Loading branch information
crynobone committed Aug 21, 2014
1 parent 56c3023 commit cce01f8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
4 changes: 4 additions & 0 deletions docs/changes.md
Expand Up @@ -5,6 +5,10 @@ title: Extension Change Log

## Version 2.1 {#v2-1}

### v2.1.5 {#v2-1-5}

* Add `Orchestra\Extension\Environment::register()` which allow explicitly register an extension on a custom path.

### v2.1.4 {#v2-1-4}

* Add `Orchestra\Extension\Environment::refresh()` method.
Expand Down
18 changes: 6 additions & 12 deletions src/Extension/Finder.php
Expand Up @@ -20,13 +20,6 @@ class Finder
*/
protected $config = array();

/**
* Extension lists.
*
* @var \Illuminate\Support\Collection|array
*/
protected $extensions = array();

/**
* List of paths.
*
Expand Down Expand Up @@ -85,9 +78,8 @@ class Finder
*/
public function __construct(Filesystem $files, array $config)
{
$this->files = $files;
$this->config = $config;
$this->extensions = new Collection($this->extensions);
$this->files = $files;
$this->config = $config;

$app = rtrim($config['path.app'], '/');
$base = rtrim($config['path.base'], '/');
Expand Down Expand Up @@ -123,6 +115,8 @@ public function addPath($path)
*/
public function detect()
{
$extensions = array();

// Loop each path to check if there orchestra.json available within
// the paths. We would only treat packages that include orchestra.json
// as an Orchestra Platform extension.
Expand All @@ -137,12 +131,12 @@ public function detect()
$name = (is_numeric($key) ? $this->guessExtensionNameFromManifest($manifest, $path) : $key);

if (! is_null($name)) {
$this->extensions[$name] = $this->getManifestContents($manifest);
$extensions[$name] = $this->getManifestContents($manifest);
}
}
}

return $this->extensions;
return new Collection($extensions);
}

/**
Expand Down

0 comments on commit cce01f8

Please sign in to comment.