mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-09 08:47:34 +01:00
33 lines
702 B
PHP
33 lines
702 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;
|
|
|
|
/**
|
|
* @author Yusup Hambali <supalpuket@gmail.com>
|
|
* @since 2.0.31
|
|
*/
|
|
class FooBaz extends \yii\base\BaseObject
|
|
{
|
|
public $fooDependent = [];
|
|
|
|
public function init()
|
|
{
|
|
// default config usually used by Yii
|
|
$dependentConfig = array_merge(['class' => FooDependent::className()], $this->fooDependent);
|
|
$this->fooDependent = \Yii::createObject($dependentConfig);
|
|
}
|
|
}
|
|
|
|
class FooDependent extends \yii\base\BaseObject
|
|
{
|
|
}
|
|
|
|
class FooDependentSubclass extends FooDependent
|
|
{
|
|
}
|