3 ms·
I don't really get Laravel. The docs talk about dependency injection but at the same time they really really love static function calls. For example there's n
by mjs 14y ago
I don't really get Laravel. The docs talk about dependency injection but at the same time they really really love static function calls. For example there's no event manager class, only a single, global event manager: e.g. "Event::fire('loaded')".
What if I want to use a different event manager? (To pass event calls across the network, for example.) There doesn't seem to be any way to do this, and pretty much all the core classes are like this.
http://laravel.com/docs/events http://laravel.com/docs/events