bangpound / assetic-service-provider
Assetic service provider for Pimple
dev-master / 1.0.x-dev
2016-07-10 07:01 UTC
Requires
- php: >=5.3.3
- kriswallsmith/assetic: ~1.1
- pimple/pimple: >=2.1,<4
This package is auto-updated.
Last update: 2024-10-12 04:05:06 UTC
README
Provides Assetic as a service to Pimple applications.
Requirements
- PHP 5.3+
- Pimple ~2.1
Installation
Through Composer as bangpound/assetic-service-provider.
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.