Hi,
so I'm trying to learn zf2 after Module Manager
I'm on EventManager but I find this 


use Zend\Log\Factory as LogFactory;

$log = LogFactory($someConfig);
$foo = new Foo();
$foo->getEventManager()->attach('bar', function ($e) use ($log) {
    $event  = $e->getName();
    $target = get_class($e->getTarget());
    $params = json_encode($e->getParams());

    $log->info(sprintf(
        '%s called on %s, using params %s',
        $event,
        $target,
        $params
    ));
});

It's frustrating for a apprentice
I dont' see any LogFactory file
in Zend\Log\Factory
what's $someConfig ?
Could take me more info, please ?






--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/ZF2-The-EventManager-Reference-Guide-lack-of-code-tp4657922.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to