2017 © Pedro Peláez
 

library assetic-service-provider

Assetic service provider for Pimple

image

bangpound/assetic-service-provider

Assetic service provider for Pimple

  • Sunday, July 10, 2016
  • by bangpound
  • Repository
  • 1 Watchers
  • 0 Stars
  • 59 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Assetic Service Provider

Provides Assetic as a service to Pimple applications., (*1)

Requirements

  • PHP 5.3+
  • Pimple ~2.1

Installation

Through Composer as bangpound/assetic-service-provider., (*2)

Usage

Pimple

<?php
use Bangpound\Pimple\Provider\AsseticServiceProvider;

$c = new Pimple\Container;

$c->register(new AsseticServiceProvider(), array(
    'assetic.debug' => TRUE,
    'assetic.read_from' => __DIR__ .'/../assets',
));

Cilex

<?php
use Cilex\Provider\Console\ConsoleServiceProvider;
use Symfony\Component\Console\Input\ArgvInput;

$c->register(new ConsoleServiceProvider());

$c['console']->add($app['assetic.command.dump']);
$c['console']->add($app['assetic.command.watch']);
$c['console']->run(new ArgvInput());

Configuration

Parameters

  • assetic.debug: Filters prefixed with a "?" will be omitted in debug mode.
  • assetic.read_from: The default root directory.
  • assetic.write_to: Override the configured asset root.

Services

  • assetic.asset_manager: Asset Manager, instance Assetic\Factory\LazyAssetManager.
  • assetic.filter_manager: Filter Manager, instance Assetic\FilterManager.
  • assetic.asset_factory: Asset Factory, instance Assetic\Factory\AssetFactory.

License

MIT, see LICENSE., (*3)

The Versions

10/07 2016

dev-master

9999999-dev

Assetic service provider for Pimple

  Sources   Download

MIT

The Requires