mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-07 15:57:35 +01:00
- Allow `__class` and `__construct()` in configurations - Allow wider use of `Instance::of` - Allow static call DI definition like: `[SomeFactory::class, 'createMethod']` - Add support for `__class` in `createObject`
19 lines
360 B
PHP
19 lines
360 B
PHP
<?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\di\Container;
|
|
|
|
class QuxFactory extends \yii\base\BaseObject
|
|
{
|
|
public static function create(Container $container)
|
|
{
|
|
return new Qux(42);
|
|
}
|
|
}
|