orbt / resource-mirror-bundle
Basic Symfony dependency injection bundle for the Resource Mirror library.
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/orbt/resource-mirror-bundle
Requires
- php: >=5.3.0
 - orbt/resource-mirror: dev-master
 
This package is not auto-updated.
Last update: 2025-10-25 19:14:47 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%/../webfor the web folder.
License
This library is licensed under the MIT License. See the LICENSE file for detailed license information.