src/Textpattern/Composer/Installer/Plugin/Manifest.php
protected function find($directory)
    {
        if ($iterator = parent::find($directory)) {
            new Textpattern();

            foreach ($this->manifestNames as $manifestName) {
                foreach ($iterator as $file) {
                    if (basename($file) === $manifestName && $this->isManifest($file)) {
                        $this->dir = dirname($file);
                        $this->import();
                    }
                }

                if (!empty($this->plugin)) {
                    return true;
                }
            }
        }

        return false;
    }
protected function find($directory)
    {
        if ($iterator = parent::find($directory)) {
            new Textpattern();

            foreach ($this->manifestNames as $manifestName) {
                foreach ($iterator as $file) {
                    if (basename($file) === $manifestName && $this->isManifest($file)) {
                        $this->dir = dirname($file);
                        $this->import();
                    }
                }

                if (!empty($this->plugin)) {
                    return true;
                }
            }
        }

        return false;
    }
protected function find ( $ directory ) { if ( $ iterator = parent :: find ( $ directory ) ) { new Textpattern ( ) ; foreach ( $ this -> manifestNames as $ manifestName ) { foreach ( $ iterator as $ file ) { if ( basename ( $ file ) === $ manifestName && $ this -> isManifest ( $ file ) ) { $ this -> dir = dirname ( $ file ) ; $ this -> import ( ) ; } } if ( ! empty ( $ this -> plugin ) ) { return true ; } } } return false ; }
Find the plugin project directory and manifest from the package.

@param  string      $directory
@return bool
Find the plugin project directory and manifest from the package .