Skip to content

Commit

Permalink
Remove unused Dispatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
mbabker committed Dec 8, 2013
1 parent 05ded45 commit b34c30e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 62 deletions.
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"joomla/controller": "1.0.*@stable",
"joomla/database": "1.0.*@stable",
"joomla/date": "1.0.*@stable",
"joomla/event": "1.0.*@stable",
"joomla/filter": "1.0.*@stable",
"joomla/github": "1.0.*@stable",
"joomla/http": "1.0.*@stable",
Expand Down
40 changes: 1 addition & 39 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 0 additions & 22 deletions src/JTracker/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

use Joomla\Application\AbstractWebApplication;
use Joomla\Controller\ControllerInterface;
use Joomla\Event\Dispatcher;
use Joomla\Registry\Registry;

use JTracker\Authentication\Exception\AuthenticationException;
Expand Down Expand Up @@ -100,7 +99,6 @@ public function __construct()
->registerServiceProvider(new GitHubProvider);

$this->loadLanguage()
->loadDispatcher()
->mark('Application started');
}

Expand Down Expand Up @@ -542,26 +540,6 @@ public function setUserState($key, $value)
return null;
}

/**
* Allows the application to load a custom or default dispatcher.
*
* The logic and options for creating this object are adequately generic for default cases
* but for many applications it will make sense to override this method and create event
* dispatchers, if required, based on more specific needs.
*
* @param Dispatcher $dispatcher An optional dispatcher object. If omitted, the factory dispatcher is created.
*
* @return $this Method allows chaining
*
* @since 1.0
*/
public function loadDispatcher(Dispatcher $dispatcher = null)
{
$this->dispatcher = ($dispatcher === null) ? new Dispatcher : $dispatcher;

return $this;
}

/**
* Get the current project.
*
Expand Down

0 comments on commit b34c30e

Please sign in to comment.