public function getDependencies($plugin)
    {
        if (is_string($plugin) && (!$plugin = $this->findByIdentifier($plugin))) {
            return false;
        }

        if (!isset($plugin->require) || !$plugin->require) {
            return null;
        }

        return is_array($plugin->require) ? $plugin->require : [$plugin->require];
    }
public function getDependencies($plugin)
    {
        if (is_string($plugin) && (!$plugin = $this->findByIdentifier($plugin))) {
            return false;
        }

        if (!isset($plugin->require) || !$plugin->require) {
            return null;
        }

        return is_array($plugin->require) ? $plugin->require : [$plugin->require];
    }
public function getDependencies ( $ plugin ) { if ( is_string ( $ plugin ) && ( ! $ plugin = $ this -> findByIdentifier ( $ plugin ) ) ) { return false ; } if ( ! isset ( $ plugin -> require ) || ! $ plugin -> require ) { return null ; } return is_array ( $ plugin -> require ) ? $ plugin -> require : [ $ plugin -> require ] ; }
Returns the plugin identifiers that are required by the supplied plugin.
@param  string $plugin Plugin identifier, object or class
@return array
Returns the plugin identifiers that are required by the supplied plugin .