示例#1
0
文件: Model.php 项目: mvc5/framework
 /**
  * @param $template
  * @param array $args
  * @param array $calls
  */
 function __construct($template, array $args = [], array $calls = [])
 {
     parent::__construct(Mvc5Model::class, [Arg::TEMPLATE => $template, Arg::CONFIG => $args], $calls);
 }
示例#2
0
 /**
  * @param string $event
  * @param array $args
  * @param array $calls
  */
 function __construct($event, array $args = [], array $calls = [])
 {
     parent::__construct(Arg::RESPONSE_DISPATCH, $this->eventArgs($event, $args), $calls);
 }
示例#3
0
文件: PluginTest.php 项目: mvc5/tests
 /**
  *
  */
 function test_construct_with_merge()
 {
     $plugin = new Plugin('foo', [], [], null, true);
     $this->assertEquals(true, $plugin->merge());
 }
示例#4
0
 /**
  * @param array|\ArrayAccess $services
  * @param $provider
  * @param $scope
  * @param array $calls
  */
 function __construct($services = [], $provider = true, $scope = true, array $calls = [])
 {
     parent::__construct(_App::class, [$this->plugins($services, $provider), $provider === true ? new Link() : $provider, $scope], $calls);
 }
示例#5
0
 /**
  * @param string $name
  * @param array $args
  * @param array $calls
  */
 function __construct($name, array $args = [], array $calls = [])
 {
     parent::__construct($name, $args, $calls + [Arg::SERVICE => new Link()]);
 }