2017 © Pedro Peláez
 

library style-mirror-bundle

Symfony dependency injection bundle for the Style Mirror library.

image

orbt/style-mirror-bundle

Symfony dependency injection bundle for the Style Mirror library.

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

The README.md

Style Mirror Bundle

Symfony dependency injection bundle for the Style Mirror library., (*1)

This bundle provides the following services:, (*2)

  • orbt_style_mirror.css.aggregator: CSS aggregator service. This aggregates a collection of CSS resources with potentially different media types into a single resource.
  • orbt_style_mirror.css.scanner: Utility for scanning linked resources from a style sheet.
  • orbt_style_mirror.css.linked_fetcher: Resource materialize event subscriber. See Configuration below to subscribe the fetcher automatically to the resource mirror.

Installation using Composer

Add the following to the "require" list in your composer.json file:, (*3)

    "orbt/style-mirror-bundle": "dev-master"

Run composer to update dependencies:, (*4)

$ composer update

Or to just download this bundle:, (*5)

$ composer update orbt/style-mirror-bundle

Register this bundle in the application kernel:, (*6)

<?php
// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        // ...
        new Orbt\Bundle\StyleMirrorBundle\OrbtStyleMirrorBundle(),
        // ...
    );

    return $bundles;
}

Configuration

The style mirror is configured under the key orbt_style_mirror. There are two options:, (*7)

  • aggregate_prefix: The prefix of the generated file name of the aggregated style sheet. This can be used to fix the base in a Symfony application for routing matching requests to a controller.
  • fetch_linked_resource: If true, the linked resource fetcher is automatically subscribed to the resource mirror service from the resource mirror bundle.

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/OrbtStyleMirrorBundle

Symfony dependency injection bundle for the Style Mirror library.

  Sources   Download

MIT

The Requires

 

by Taihao Zhang