/**
  * 
  * @param array $config
  * @param EventManagerInterface $eventManager
  * @return ClassParser
  */
 public static function factory(array $config, EventManagerInterface $eventManager)
 {
     $parser = new ClassParser($config, AnnotationManagerFactory::factory($config['zf_annotation']['annotations']), $eventManager);
     foreach ($config['zf_annotation']['event_listeners'] as $listener) {
         $parser->attach(new $listener());
     }
     return $parser;
 }
 /**
  * 
  * @param array $config
  * @param EventManagerInterface $eventManager
  * @param Reader $annotationReader
  * @return ClassParser
  */
 public static function factory(array $config, EventManagerInterface $eventManager, Reader $annotationReader = null)
 {
     if (null === $annotationReader) {
         $annotationReader = AnnotationReaderFactory::factory($config['zf_annotation']);
     }
     $parser = new ClassParser($config, $annotationReader, $eventManager);
     foreach ($config['zf_annotation']['event_listeners'] as $listener) {
         $parser->attach(new $listener());
     }
     return $parser;
 }