From b34c30e04ca3f04237f98b67b27941f8db9a6f2d Mon Sep 17 00:00:00 2001 From: Michael Babker Date: Sun, 8 Dec 2013 15:25:51 -0600 Subject: [PATCH] Remove unused Dispatcher --- composer.json | 1 - composer.lock | 40 +----------------------------------- src/JTracker/Application.php | 22 -------------------- 3 files changed, 1 insertion(+), 62 deletions(-) diff --git a/composer.json b/composer.json index 56091273d..f5bfc8135 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/composer.lock b/composer.lock index b3a9c1c3e..c7ad93e93 100644 --- a/composer.lock +++ b/composer.lock @@ -3,7 +3,7 @@ "This file locks the dependencies of your project to a known state", "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file" ], - "hash": "c8c16b0d877241e275ffa46a0a198845", + "hash": "86b4bf62b6ec17a21978e69c7ab07955", "packages": [ { "name": "elkuku/console-progressbar", @@ -85,43 +85,6 @@ "description": "The g11n language library", "time": "2013-11-16 16:59:23" }, - { - "name": "joomla/event", - "version": "1.0", - "target-dir": "Joomla/Event", - "source": { - "type": "git", - "url": "https://github.com/joomla/joomla-framework-event.git", - "reference": "daafeea58267986f2c6ce6658bc9d70fe69190d7" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/joomla/joomla-framework-event/zipball/daafeea58267986f2c6ce6658bc9d70fe69190d7", - "reference": "daafeea58267986f2c6ce6658bc9d70fe69190d7", - "shasum": "" - }, - "require": { - "php": ">=5.3.10" - }, - "type": "joomla-package", - "autoload": { - "psr-0": { - "Joomla\\Event": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "GPL-2.0+" - ], - "description": "Joomla Event Package", - "homepage": "https://github.com/joomla/joomla-framework-event", - "keywords": [ - "event", - "framework", - "joomla" - ], - "time": "2013-11-10 12:14:49" - }, { "name": "joomla/framework", "version": "1.0", @@ -563,7 +526,6 @@ "joomla/controller": 0, "joomla/database": 0, "joomla/date": 0, - "joomla/event": 0, "joomla/filter": 0, "joomla/github": 0, "joomla/http": 0, diff --git a/src/JTracker/Application.php b/src/JTracker/Application.php index d045e3173..0be1652ee 100644 --- a/src/JTracker/Application.php +++ b/src/JTracker/Application.php @@ -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; @@ -100,7 +99,6 @@ public function __construct() ->registerServiceProvider(new GitHubProvider); $this->loadLanguage() - ->loadDispatcher() ->mark('Application started'); } @@ -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. *