dev-master
9999999-dev http://github.com/orbt/OrbtResourceMirrorBundleBasic Symfony dependency injection bundle for the Resource Mirror library.
MIT
The Requires
- php >=5.3.0
- orbt/resource-mirror dev-master
by Taihao Zhang
Wallogit.com
2017 © Pedro Peláez
Basic Symfony dependency injection bundle for the Resource Mirror library.
Basic Symfony dependency injection bundle for the Resource Mirror library., (*1)
This bundle provides the following services:, (*2)
orbt_resource_mirror.factory: Resource mirror factory, useful as a factory service to create additional mirrors.orbt_resource_mirror.mirror: Main resource mirror. See Configuration below to configure the mirror.Add the following to the "require" list in your composer.json file:, (*3)
"orbt/resource-mirror-bundle": "dev-master"
Run composer to update dependencies:, (*4)
$ composer update
Or to just download this bundle:, (*5)
$ composer update orbt/resource-mirror-bundle
Register this bundle in the application kernel:, (*6)
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Orbt\Bundle\ResourceMirrorBundle\OrbtResourceMirrorBundle(),
// ...
);
return $bundles;
}
The resource mirror is configured under the key orbt_resource_mirror. There are two options:, (*7)
base_url: The base URL of the backend server to mirror.directory: The local directory to mirror resources to. Tip: use %kernel.root_dir%/../web for the web folder.This library is licensed under the MIT License. See the LICENSE file for detailed license information., (*8)
Basic Symfony dependency injection bundle for the Resource Mirror library.
MIT