Extension.php 748 Bytes
Newer Older
Qiang Xue committed
1 2 3 4 5 6 7 8 9 10
<?php
/**
 * @link http://www.yiiframework.com/
 * @copyright Copyright (c) 2008 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 */

namespace yii\base;

/**
11 12 13
 * Extension is the base class that may be extended by individual extensions.
 *
 * Extension serves as the bootstrap class for extensions. When an extension
14
 * is installed via composer, the [[bootstrap()]] method of its Extension class (if any)
15 16
 * will be invoked during the application initialization stage.
 *
Qiang Xue committed
17 18 19 20 21
 * @author Qiang Xue <qiang.xue@gmail.com>
 * @since 2.0
 */
class Extension
{
22 23
    /**
     * Initializes the extension.
24
     * This method is invoked at the beginning of [[Application::init()]].
25
     */
26
    public static function bootstrap()
27 28
    {
    }
Qiang Xue committed
29
}