Provides Assetic as a service to Pimple applications.
- PHP 5.3+
- Pimple ~2.1
Through Composer as bangpound/assetic-service-provider.
<?php
use Bangpound\Pimple\Provider\AsseticServiceProvider;
$c = new Pimple\Container;
$c->register(new AsseticServiceProvider(), array(
'assetic.debug' => TRUE,
'assetic.read_from' => __DIR__ .'/../assets',
));
<?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());
- 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.
- 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
.
MIT, see LICENSE.