Skip to content

Commit

Permalink
Removed database field creation
Browse files Browse the repository at this point in the history
Removed constructor
  • Loading branch information
vitalyiegorov committed Aug 31, 2016
1 parent fd295c0 commit 9747c38
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions src/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class Controller extends \samsoncms\Application
public function prepare()
{
$social = & $this->system->module('social');
db()->createField($this, $social->dbTable, 'dbGroupIdField', 'INT(11)');
//db()->createField($this, $social->dbTable, 'dbGroupIdField', 'INT(11)');

$adminUser = 'admin@admin.com';

Expand All @@ -81,24 +81,6 @@ public function prepare()
}
//[PHPCOMPRESSOR(remove,end)]

/**
* Controller constructor.
*
* @param string $path
* @param ResourcesInterface $resources
* @param SystemInterface $system
*
* @InjectArgument(query="\samsonframework\orm\QueryInterface")
* @InjectArgument(resources="\samsonframework\core\ResourcesInterface")
* @InjectArgument(system="\samsonframework\core\SystemInterface")
*/
public function __construct(QueryInterface $query, $path, ResourcesInterface $resources, SystemInterface $system)
{
$this->query = $query;

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

/**
* Asynchronous change group right controller action
* @param string $groupID Group identifier
Expand Down

0 comments on commit 9747c38

Please sign in to comment.