__construct() public method

taskPrivileges array ACL privileges for each task cacheableTasks array The cache-enabled tasks
public __construct ( Container $container, array $config = [] )
$container FOF30\Container\Container The application container
$config array The configuration array
Ejemplo n.º 1
0
 /**
  * Assigns callback functions to the class, the $methods array should be an associative one, where
  * the keys are the method names, while the values are the closure functions, e.g.
  *
  * array(
  *    'foobar' => function(){ return 'Foobar'; }
  * )
  *
  * @param           $container
  * @param array     $config
  * @param array     $methods
  */
 public function __construct(Container $container, array $config = array(), array $methods = array())
 {
     foreach ($methods as $method => $function) {
         $this->mockedMethods[$method] = $function;
     }
     parent::__construct($container, $config);
 }
Ejemplo n.º 2
0
 public function __construct(Container $container, array $config = array())
 {
     parent::__construct($container, $config);
     if ($this->getModel()->getState('limit', 0) != 0) {
         $this->getModel()->with([]);
     }
 }