Files
yii2/tests/framework/di/stubs/QuxFactory.php
Andrii Vasyliev da626f507f Fix #17607: Added Yii version 3 DI config compatibility
- 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`
2019-10-17 14:01:00 +03:00

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);
}
}