Skip to content

Commit

Permalink
Remove constructor that does nothing other than bad things.
Browse files Browse the repository at this point in the history
Spooky side-effects at a distance on object construction is a no-no.
  • Loading branch information
markstory committed May 16, 2014
1 parent 4803c4a commit d2a8a9e
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/Routing/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,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
Expand Down

0 comments on commit d2a8a9e

Please sign in to comment.