Skip to content
This repository has been archived by the owner on Nov 8, 2020. It is now read-only.

Commit

Permalink
Merge pull request #43 from royopa/patch-1
Browse files Browse the repository at this point in the history
Added syntax php to markdown code
  • Loading branch information
mheap committed Nov 24, 2014
2 parents c0312e0 + 66f1d6b commit 67b1553
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion doc/assetic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,20 @@ Services

Example usage::

```php
$asset = new FileAsset(__DIR__ . '/extra/*.css');
$app['assetic.asset_manager']->set('extra_css', $asset);
```

* **assetic.filter_manager**: Instance of FilterManager
for adding filters (implements FilterInterface)

Example usage::

```php
$filter = new CssMinFilter();
$app['assetic.filter_manager']->set('css_min', $filter);
```

* **assetic.asset_writer**: If you need it, feel free to use.

Expand All @@ -50,11 +54,13 @@ Services

Example usage::

```php
$app['assetic.lazy_asset_manager']->setFormula('extra_css', array(
array(__DIR__ . '/extra/*.css'),
array('yui_css'),
array('output' => 'css/extra')
));
```

* **assetic.dumper**: Instance of SilexAssetic\Assetic\Dumper. Contains methods
to dump assets.
Expand All @@ -64,6 +70,7 @@ Registering

Example registration and configuration::

```php
$app->register(new SilexAssetic\AsseticServiceProvider());
$app['assetic.path_to_web'] = __DIR__ . '/assets';
Expand Down Expand Up @@ -96,4 +103,4 @@ Registering
return $am;
})
);

```

0 comments on commit 67b1553

Please sign in to comment.