Sam
7 years ago
committed by
Alexander Makarov
5 changed files with 65 additions and 3 deletions
@ -0,0 +1,24 @@
|
||||
<?php |
||||
/** |
||||
* @link http://www.yiiframework.com/ |
||||
* @copyright Copyright (c) 2008 Yii Software LLC |
||||
* @license http://www.yiiframework.com/license/ |
||||
*/ |
||||
|
||||
namespace yiiunit\framework\di\stubs; |
||||
|
||||
use yii\base\Object; |
||||
|
||||
/** |
||||
* @author Sam Mousa <sam@mousa.nl> |
||||
* @since 2.0.13 |
||||
*/ |
||||
class Variadic |
||||
{ |
||||
public function __construct(QuxInterface ...$quxes) |
||||
{ |
||||
|
||||
} |
||||
|
||||
|
||||
} |
@ -0,0 +1,15 @@
|
||||
<?php |
||||
/** |
||||
* @link http://www.yiiframework.com/ |
||||
* @copyright Copyright (c) 2008 Yii Software LLC |
||||
* @license http://www.yiiframework.com/license/ |
||||
*/ |
||||
|
||||
use yii\di\Container; |
||||
use yiiunit\framework\di\stubs\QuxInterface; |
||||
|
||||
$container = new Container(); |
||||
$func = function(QuxInterface ...$quxes) { |
||||
return "That's a whole lot of quxes!"; |
||||
}; |
||||
$container->invoke($func); |
Loading…
Reference in new issue