src/Plugin.php
protected static function _getConfigForLoad($path)
    {
        $config    = ['autoload' => true];
        $routes    = $path . 'config' . DS . Plugin::FILE_ROUTES;
        $bootstrap = $path . 'config' . DS . Plugin::FILE_BOOTSTRAP;

        if (FS::isFile($bootstrap)) {
            $config['bootstrap'] = true;
        }

        if (FS::isFile($routes)) {
            $config['routes'] = true;
        }

        $config['path'] = $path;

        return $config;
    }
protected static function _getConfigForLoad($path)
    {
        $config    = ['autoload' => true];
        $routes    = $path . 'config' . DS . Plugin::FILE_ROUTES;
        $bootstrap = $path . 'config' . DS . Plugin::FILE_BOOTSTRAP;

        if (FS::isFile($bootstrap)) {
            $config['bootstrap'] = true;
        }

        if (FS::isFile($routes)) {
            $config['routes'] = true;
        }

        $config['path'] = $path;

        return $config;
    }
protected static function _getConfigForLoad ( $ path ) { $ config = [ 'autoload' => true ] ; $ routes = $ path . 'config' . DS . Plugin :: FILE_ROUTES ; $ bootstrap = $ path . 'config' . DS . Plugin :: FILE_BOOTSTRAP ; if ( FS :: isFile ( $ bootstrap ) ) { $ config [ 'bootstrap' ] = true ; } if ( FS :: isFile ( $ routes ) ) { $ config [ 'routes' ] = true ; } $ config [ 'path' ] = $ path ; return $ config ; }
Get plugin configuration for load plugin.

@param string $path
@return array
Get plugin configuration for load plugin .