private function shouldHandle($event)
    {
        if ($event instanceof TransactionalEvent) {
            return true;
        }

        $event = is_string($event) ? $event : get_class($event);

        foreach ($this->excluded as $excluded) {
            if ($this->matches($excluded, $event)) {
                return false;
            }
        }

        foreach ($this->transactional as $transactionalEvent) {
            if ($this->matches($transactionalEvent, $event)) {
                return true;
            }
        }

        return false;
    }
private function shouldHandle($event)
    {
        if ($event instanceof TransactionalEvent) {
            return true;
        }

        $event = is_string($event) ? $event : get_class($event);

        foreach ($this->excluded as $excluded) {
            if ($this->matches($excluded, $event)) {
                return false;
            }
        }

        foreach ($this->transactional as $transactionalEvent) {
            if ($this->matches($transactionalEvent, $event)) {
                return true;
            }
        }

        return false;
    }
private function shouldHandle ( $ event ) { if ( $ event instanceof TransactionalEvent ) { return true ; } $ event = is_string ( $ event ) ? $ event : get_class ( $ event ) ; foreach ( $ this -> excluded as $ excluded ) { if ( $ this -> matches ( $ excluded , $ event ) ) { return false ; } } foreach ( $ this -> transactional as $ transactionalEvent ) { if ( $ this -> matches ( $ transactionalEvent , $ event ) ) { return true ; } } return false ; }
Check whether an event should be handled by this layer or not.

@param  string|object  $event
@return bool
Check whether an event should be handled by this layer or not .