Skip to content

Commit

Permalink
Added di support
Browse files Browse the repository at this point in the history
  • Loading branch information
Molodyko Ruslan committed Aug 31, 2016
1 parent 1c0cfce commit fd295c0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Controller.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use samsonframework\core\ResourcesInterface;
use samsonframework\core\SystemInterface;
use samsonframework\i18n\i18nInterface;
use samsonframework\orm\QueryInterface;

/**
* SamsonCMS security controller
Expand Down Expand Up @@ -52,7 +53,7 @@ class Controller extends \samsoncms\Application
protected $query;

/**
* @var \samsonframework\i18n\I18nInterface
* @var \samsonframework\i18n\i18nInterface
* @Injectable
*/
protected $i18n;
Expand Down Expand Up @@ -87,12 +88,13 @@ public function prepare()
* @param ResourcesInterface $resources
* @param SystemInterface $system
*
* @InjectArgument(query="\samsonframework\orm\QueryInterface")
* @InjectArgument(resources="\samsonframework\core\ResourcesInterface")
* @InjectArgument(system="\samsonframework\core\SystemInterface")
*/
public function __construct($path, ResourcesInterface $resources, SystemInterface $system)
public function __construct(QueryInterface $query, $path, ResourcesInterface $resources, SystemInterface $system)
{
$this->query = new dbQuery();
$this->query = $query;

parent::__construct($path, $resources, $system);
}
Expand Down

0 comments on commit fd295c0

Please sign in to comment.