-
Notifications
You must be signed in to change notification settings - Fork 111
Replace factory in provider by something better #13
Comments
What exactly are you referring to? I'm ashamed if I have an abstract static function somewhere... |
You had a static function in an interface, PHPStorm considered it as "abstract". Either way, I'm also modified your code, I have removed your ProviderInterface and replaced it by making the AbstractProvider implementing the ListenerAggregateInterface from ZF 2. |
But we'd better have a Factory class, so we do Factory::factory($config) instead of the $class::factory($config). It looks cleaner to me. |
+1 |
Maybe it's because the abstract class |
PHP 5.4 array syntax seriously everywhere *
Everything's been fixed by refactor. |
My IDE (PHPStorm) complains about an abstract static function. It does not throw an error but says this is not a recommanded practice. I think we should follow ZF pattern and have a Factory class instead.
What do you think ?
The text was updated successfully, but these errors were encountered: