Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use DI container, not manager

  • Loading branch information...
commit 23519468aac013b5d380e9db87007b19ada2d7a0 1 parent 779b9bb
@pmjones pmjones authored
View
4 src/Aura/Framework/Bootstrap.php
@@ -10,7 +10,7 @@
*/
namespace Aura\Framework;
use Aura\Autoload\Loader;
-use Aura\Di\Manager as DiManager;
+use Aura\Di\Container as DiContainer;
use Aura\Di\Forge as DiForge;
use Aura\Di\Config as DiConfig;
@@ -58,7 +58,7 @@ public function exec()
}
// set the DI container object
- $this->di = new DiManager(new DiForge(new DiConfig));
+ $this->di = new DiContainer(new DiForge(new DiConfig));
// set the config object
$this->config = new Config($this->system, $this->loader, $this->di);
View
4 src/Aura/Framework/Config.php
@@ -1,7 +1,7 @@
<?php
namespace Aura\Framework;
use Aura\Autoload\Loader;
-use Aura\Di\Manager;
+use Aura\Di\Container;
class Config
{
@@ -13,7 +13,7 @@ class Config
public $files;
- public function __construct(System $system, Loader $loader, Manager $di)
+ public function __construct(System $system, Loader $loader, Container $di)
{
$this->system = $system;
$this->loader = $loader;
Please sign in to comment.
Something went wrong with that request. Please try again.