Browse Source

Remove constructor that does nothing other than bad things.

Spooky side-effects at a distance on object construction is a no-no.
mark_story 12 years ago
parent
commit
d2a8a9e6ef
1 changed files with 0 additions and 11 deletions
  1. 0 11
      src/Routing/Dispatcher.php

+ 0 - 11
src/Routing/Dispatcher.php

@@ -50,17 +50,6 @@ class Dispatcher {
 	protected $_filters = [];
 
 /**
- * Constructor.
- *
- * @param string $base The base directory for the application. Writes `App.base` to Configure.
- */
-	public function __construct($base = false) {
-		if ($base !== false) {
-			Configure::write('App.base', $base);
-		}
-	}
-
-/**
  * Returns the Cake\Event\EventManager instance or creates one if none was
  * created. Attaches the default listeners and filters
  *