Skip to content

Commit d2a8a9e

Browse files
committed
Remove constructor that does nothing other than bad things.
Spooky side-effects at a distance on object construction is a no-no.
1 parent 4803c4a commit d2a8a9e

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/Routing/Dispatcher.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,6 @@ class Dispatcher {
4949
*/
5050
protected $_filters = [];
5151

52-
/**
53-
* Constructor.
54-
*
55-
* @param string $base The base directory for the application. Writes `App.base` to Configure.
56-
*/
57-
public function __construct($base = false) {
58-
if ($base !== false) {
59-
Configure::write('App.base', $base);
60-
}
61-
}
62-
6352
/**
6453
* Returns the Cake\Event\EventManager instance or creates one if none was
6554
* created. Attaches the default listeners and filters

0 commit comments

Comments
 (0)