RWOverdijk/AssetManager — pull request #72 by internalsystemerror (2012-12-19 21:00:40+00:00)
Title: Allow use of route

Recommended change to implement feature requested in AssetManager issue 68.

Allows the user to tell this module to use route matching. If enabled, only uri's starting with $basePath . /assets will trigger the path to resolved.

A very simple use of this in module.config.php would be:

```php

return array(
'asset_manager' => array(
'resolver_configs' => array(
'paths' => array(
__DIR__ . '/../public'
),
),
'use_route' => true,
),
'view_manager' => array(
'base_path' => '/a-custom-path'
),
'router' => array(
'routes' => array(
'assets' => array(
'type' => 'Segment',
'options' => array(
'route' => '/a-custom-path[/:file]',
'constraints' => array(
'file' => '.*',
),
),
),
),
),
);
```

This commit does not include any changes to test suites.