Skip to content

Commit

Permalink
Update README.md and DIResolver fix
Browse files Browse the repository at this point in the history
  • Loading branch information
s3b4stian committed Sep 10, 2016
1 parent 9cd883c commit 5b603bc
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,19 @@

A little MVC framework for undersand and learn PHP programming

Soon docs
Features:

* Model View Controller
* Session Managment and Login
* Router
* Dependency Injections
* Storage Manager for data base and cache
* PSR4 Autoloader

To Do:

* Documentation
* Unit Testing
* Session and Storage Manager refactoring
* Router refactoring
* PSR7 support
13 changes: 8 additions & 5 deletions src/Linna/DI/DIResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,26 @@

class DIResolver
{
private $class;
//private $class;

private $cache = array();

private $dependencyTree = array();

public function __construct()
{
}

public function resolve($class)
public function resolve($resolveClass)
{
$this->class = $class;
//$this->class = $class;

$this->buildDependencyTree(0, $class);
$this->buildDependencyTree(0, $resolveClass);

$this->buildObjects();

return $this->getCache($this->class);
//return $this->getCache($this->class);
return $this->getCache($resolveClass);
}

public function cacheUnResolvable($name, $object)
Expand Down

0 comments on commit 5b603bc

Please sign in to comment.