You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
367 B
15 lines
367 B
<?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);
|
|
|