orbt / resource-mirror-bundle
Basic Symfony dependency injection bundle for the Resource Mirror library.
dev-master
2012-10-30 14:35 UTC
Requires
- php: >=5.3.0
- orbt/resource-mirror: dev-master
This package is not auto-updated.
Last update: 2024-04-13 11:28:15 UTC
README
Basic Symfony dependency injection bundle for the Resource Mirror library.
This bundle provides the following services:
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.
Installation using Composer
Add the following to the "require"
list in your composer.json
file:
"orbt/resource-mirror-bundle": "dev-master"
Run composer to update dependencies:
$ composer update
Or to just download this bundle:
$ composer update orbt/resource-mirror-bundle
Register this bundle in the application kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Orbt\Bundle\ResourceMirrorBundle\OrbtResourceMirrorBundle(), // ... ); return $bundles; }
Configuration
The resource mirror is configured under the key orbt_resource_mirror
. There are two options:
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.
License
This library is licensed under the MIT License. See the LICENSE file for detailed license information.