Closed rantonmattei closed 9 years ago
ClassLoader
is missing. The test cannot mock that class. It is used as a DI. Will add it in a few...
ah, makes sense.. I was wondering what $classLoader->canHandle(..
was doing
This is quite simple – and clean. No major feedback here. R+
R+ once the build passes
2 resolver classes, they both use a reflected object (see Reflection)
OptionsResolver
objectThose 2 essentially do the same thing:
resolve
method)Constructor params are must have, you need those to instantiate a logger handler (StreamHandler for instance). Extra params is a way to consume more params for the config if needed. Let's say you want to use a handler but not all the params you want to use can be passed through the constructor LogglyHandler for instance. It takes only the token and the level... but let's say you'd like configure tags as well. The way you would typically do it is instantiate your handler first and then call either the
setTag
oraddTag
method.Cascade allows you to do this automatically by passing
add_tag
as a param so everything is configured in one step@mortaliorchard @OrCharles