vendor/zfcampus/zf-apigility-doctrine/src/Server/Event/Listener/CollectionListener.php
/**
     * @param EventManagerInterface $events
     * @param int $priority
     */
@param EventManagerInterface $events
@param int $priority
@param EventManagerInterface $events @param int $priority
public function attach(EventManagerInterface $events, $priority = 1)
    {
        $this->listeners[] = $events->attach(
            DoctrineResourceEvent::EVENT_UPDATE_PRE,
            [$this, 'handleCollections']
        );
        $this->listeners[] = $events->attach(
            DoctrineResourceEvent::EVENT_CREATE_PRE,
            [$this, 'handleCollections']
        );
    }
public function attach ( EventManagerInterface $ events , $ priority = 1 ) { $ this -> listeners [ ] = $ events -> attach ( DoctrineResourceEvent :: EVENT_UPDATE_PRE , [ $ this , 'handleCollections' ] ) ; $ this -> listeners [ ] = $ events -> attach ( DoctrineResourceEvent :: EVENT_CREATE_PRE , [ $ this , 'handleCollections' ] ) ; }
@param EventManagerInterface $events
 @param int $priority
@param EventManagerInterface $events @param int $priority