Closed donatj closed 10 years ago
It is technically useless though, and I feel the changing namespace argument is moot.
Using absolute paths for all your classes incase something changes is kind of silly because let's say the namespace on container were to change, now you have to update all these absolute paths, it's silly.
Moreover, changing an objects namespace by hand is huge messy task and I'd absolutely recomend using a good refactoring tool (read: phpStorm) which would correct any relative ones and add the necessary namespaces.
I get where @harikt is coming from here. Even so, I think this is harmless, and probably more consistent overall. Thanks @donatj for the attention to detail.
This is not an unused use statement.
The namespace is
Aura\Di
, andAura\Di\Container
is used. It is always good to have the use statement though it is not necessary when a namespace is there.I feel good to have a consistency here.