2017 © Pedro Peláez
 

library resource-mirror-bundle

Basic Symfony dependency injection bundle for the Resource Mirror library.

image

orbt/resource-mirror-bundle

Basic Symfony dependency injection bundle for the Resource Mirror library.

  • Tuesday, October 30, 2012
  • by zhangtaihao
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Resource Mirror Bundle

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.

Installation using Composer

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;
}

Configuration

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.

License

This library is licensed under the MIT License. See the LICENSE file for detailed license information., (*8)

The Versions

30/10 2012

dev-master

9999999-dev http://github.com/orbt/OrbtResourceMirrorBundle

Basic Symfony dependency injection bundle for the Resource Mirror library.

  Sources   Download

MIT

The Requires

 

by Taihao Zhang