octicon-rss(16/)
You've already forked yii2
mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-10 02:13:17 +08:00
Extension installer wip
This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
octicon-diff(16/tw-mr-1) 7 changed files with 42 additions and 6 deletions
@@ -26,5 +26,9 @@ class InstallerPlugin implements PluginInterface
|
|||||||
{
|
{
|
||||||
$installer = new Installer($io, $composer);
|
$installer = new Installer($io, $composer);
|
||||||
$composer->getInstallationManager()->addInstaller($installer);
|
$composer->getInstallationManager()->addInstaller($installer);
|
||||||
|
$file = rtrim($composer->getConfig()->get('vendor-dir'), '/') . '/yii-extensions.php';
|
||||||
|
if (!is_file($file)) {
|
||||||
|
file_put_contents($file, "<?php\nreturn array();\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"name": "yiisoft/yii2-jui",
|
"name": "yiisoft/yii2-jui",
|
||||||
"description": "The Jquery UI extension for the Yii framework",
|
"description": "The Jquery UI extension for the Yii framework",
|
||||||
"keywords": ["yii", "Jquery UI", "renderer"],
|
"keywords": ["yii", "Jquery UI", "renderer"],
|
||||||
"type": "library",
|
"type": "yii-extension",
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/yiisoft/yii2/issues?state=open",
|
"issues": "https://github.com/yiisoft/yii2/issues?state=open",
|
||||||
@@ -17,5 +17,8 @@
|
|||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-0": { "yii\\jui\\": "" }
|
"psr-0": { "yii\\jui\\": "" }
|
||||||
|
},
|
||||||
|
"extra": {
|
||||||
|
"bootstrap": "yii\\jui\\Extension"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,4 @@
|
|||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-0": { "yii\\mutex\\": "" }
|
"psr-0": { "yii\\mutex\\": "" }
|
||||||
},
|
},
|
||||||
"extra": {
|
|
||||||
"bootstrap": "yii\\mutex\\Extension"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"name": "yiisoft/yii2-smarty",
|
"name": "yiisoft/yii2-smarty",
|
||||||
"description": "The Smarty integration for the Yii framework",
|
"description": "The Smarty integration for the Yii framework",
|
||||||
"keywords": ["yii", "smarty", "renderer"],
|
"keywords": ["yii", "smarty", "renderer"],
|
||||||
"type": "library",
|
"type": "yii-extension",
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/yiisoft/yii2/issues?state=open",
|
"issues": "https://github.com/yiisoft/yii2/issues?state=open",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"name": "yiisoft/yii2-twig",
|
"name": "yiisoft/yii2-twig",
|
||||||
"description": "The Twig integration for the Yii framework",
|
"description": "The Twig integration for the Yii framework",
|
||||||
"keywords": ["yii", "twig", "renderer"],
|
"keywords": ["yii", "twig", "renderer"],
|
||||||
"type": "library",
|
"type": "yii-extension",
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/yiisoft/yii2/issues?state=open",
|
"issues": "https://github.com/yiisoft/yii2/issues?state=open",
|
||||||
|
|||||||
@@ -109,6 +109,19 @@ abstract class Application extends Module
|
|||||||
* @var array the parameters supplied to the requested action.
|
* @var array the parameters supplied to the requested action.
|
||||||
*/
|
*/
|
||||||
public $requestedParams;
|
public $requestedParams;
|
||||||
|
/**
|
||||||
|
* @var array list of installed Yii extensions. Each array element represents a single extension
|
||||||
|
* with the following structure:
|
||||||
|
*
|
||||||
|
* ~~~
|
||||||
|
* [
|
||||||
|
* 'name' => 'extension name',
|
||||||
|
* 'version' => 'version number',
|
||||||
|
* 'bootstrap' => 'BootstrapClassName',
|
||||||
|
* ]
|
||||||
|
* ~~~
|
||||||
|
*/
|
||||||
|
public $extensions = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Used to reserve memory for fatal error handler.
|
* @var string Used to reserve memory for fatal error handler.
|
||||||
|
|||||||
19
framework/yii/base/Extension.php
Normal file
19
framework/yii/base/Extension.php
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @link http://www.yiiframework.com/
|
||||||
|
* @copyright Copyright (c) 2008 Yii Software LLC
|
||||||
|
* @license http://www.yiiframework.com/license/
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace yii\base;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Qiang Xue <qiang.xue@gmail.com>
|
||||||
|
* @since 2.0
|
||||||
|
*/
|
||||||
|
class Extension
|
||||||
|
{
|
||||||
|
public static function init()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user