src/Config.php
/**
     * Tries to find needed resource by looping each of registered loaders.
     *
     * @param string $resource
     *
     * @return array|null Returns null if resource is not found
     */
Tries to find needed resource by looping each of registered loaders.
@param string $resource

@return array|null Returns null if resource is not found
Tries to find needed resource by looping each of registered loaders . @param string $resource @return array|null Returns null if resource is not found
protected function discover($resource)
    {
        foreach ($this->loaders as $loader) {
            $res = $loader->load($resource);
            if (!is_null($res)) {
                return $res;
            }
        }
    }
protected function discover ( $ resource ) { foreach ( $ this -> loaders as $ loader ) { $ res = $ loader -> load ( $ resource ) ; if ( ! is_null ( $ res ) ) { return $ res ; } } }
Tries to find needed resource by looping each of registered loaders.
Tries to find needed resource by looping each of registered loaders .