Skip to content

Commit

Permalink
common configuration for Aura.View
Browse files Browse the repository at this point in the history
  • Loading branch information
harikt committed Apr 2, 2014
1 parent b7359d6 commit 13a092e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
5 changes: 4 additions & 1 deletion composer.json
Expand Up @@ -29,7 +29,10 @@
},
"extra": {
"aura": {
"type": "library"
"type": "library",
"config": {
"common": "Aura\\View\\_Config\\Common",
}
},
"branch-alias": {
"dev-develop-2": "2.0.x-dev"
Expand Down
22 changes: 22 additions & 0 deletions config/Common.php
@@ -0,0 +1,22 @@
<?php
namespace Aura\View\_Config;

use Aura\Di\Config;
use Aura\Di\Container;

class Common extends Config
{
public function define(Container $di)
{
$di->params['Aura\View\Manager'] = [
'template' => $di->lazyNew('Aura\View\Template'),
'helper' => $di->lazyNew('Aura\Html\HelperLocator'),
'view_finder' => $di->lazyNew('Aura\View\Finder'),
'layout_finder' => $di->lazyNew('Aura\View\Finder'),
];
}

public function modify(Container $di)
{
}
}

0 comments on commit 13a092e

Please sign in to comment.