public function observers(): array
    {
        if ($this->shouldIgnore()) {
            return [];
        }

        $observers = [];

        foreach ($this->getManifest() as $name => $extra) {
            $observers = array_merge($observers, $extra['observers'] ?? []);
        }

        return array_map([$this, 'listObserver'], array_filter($observers, [$this, 'validateObserver']));
    }
public function observers(): array
    {
        if ($this->shouldIgnore()) {
            return [];
        }

        $observers = [];

        foreach ($this->getManifest() as $name => $extra) {
            $observers = array_merge($observers, $extra['observers'] ?? []);
        }

        return array_map([$this, 'listObserver'], array_filter($observers, [$this, 'validateObserver']));
    }
public function observers ( ) : array { if ( $ this -> shouldIgnore ( ) ) { return [ ] ; } $ observers = [ ] ; foreach ( $ this -> getManifest ( ) as $ name => $ extra ) { $ observers = array_merge ( $ observers , $ extra [ 'observers' ] ?? [ ] ) ; } return array_map ( [ $ this , 'listObserver' ] , array_filter ( $ observers , [ $ this , 'validateObserver' ] ) ) ; }
Get observers.

@return array
Get observers .