Skip to content

Commit

Permalink
Merge branch '2.1' into 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
crynobone committed May 18, 2014
2 parents 92d021c + fda0372 commit 45f972c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/Extension/Dispatcher.php
Expand Up @@ -19,7 +19,7 @@ class Dispatcher implements DispatcherInterface
*
* @var \Illuminate\Events\Dispatcher
*/
protected $event;
protected $dispatcher;

/**
* Filesystem instance.
Expand Down Expand Up @@ -53,23 +53,23 @@ class Dispatcher implements DispatcherInterface
* Construct a new Application instance.
*
* @param \Illuminate\Config\Repository $config
* @param \Illuminate\Events\Dispatcher $event
* @param \Illuminate\Events\Dispatcher $dispatcher
* @param \Illuminate\Filesystem\Filesystem $files
* @param Finder $finder
* @param ProviderRepository $provider
*/
public function __construct(
Repository $config,
EventDispatcher $event,
EventDispatcher $dispatcher,
Filesystem $files,
Finder $finder,
ProviderRepository $provider
) {
$this->config = $config;
$this->event = $event;
$this->files = $files;
$this->finder = $finder;
$this->provider = $provider;
$this->config = $config;
$this->dispatcher = $dispatcher;
$this->files = $files;
$this->finder = $finder;
$this->provider = $provider;
}

/**
Expand Down Expand Up @@ -184,7 +184,7 @@ public function finish($name, $options)
*/
protected function fireEvent($name, $options, $type = 'started')
{
$this->event->fire("extension.{$type}", array($name, $options));
$this->event->fire("extension.{$type}: {$name}", array($options));
$this->dispatcher->fire("extension.{$type}", array($name, $options));
$this->dispatcher->fire("extension.{$type}: {$name}", array($options));
}
}

0 comments on commit 45f972c

Please sign in to comment.