Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
03861b6f
Commit
03861b6f
authored
Oct 19, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extension installer wip
parent
f756ab60
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
42 additions
and
6 deletions
+42
-6
InstallerPlugin.php
extensions/composer/yii/composer/InstallerPlugin.php
+4
-0
composer.json
extensions/jui/composer.json
+4
-1
composer.json
extensions/mutex/composer.json
+0
-3
composer.json
extensions/smarty/composer.json
+1
-1
composer.json
extensions/twig/composer.json
+1
-1
Application.php
framework/yii/base/Application.php
+13
-0
Extension.php
framework/yii/base/Extension.php
+19
-0
No files found.
extensions/composer/yii/composer/InstallerPlugin.php
View file @
03861b6f
...
...
@@ -26,5 +26,9 @@ class InstallerPlugin implements PluginInterface
{
$installer
=
new
Installer
(
$io
,
$composer
);
$composer
->
getInstallationManager
()
->
addInstaller
(
$installer
);
$file
=
rtrim
(
$composer
->
getConfig
()
->
get
(
'vendor-dir'
),
'/'
)
.
'/yii-extensions.php'
;
if
(
!
is_file
(
$file
))
{
file_put_contents
(
$file
,
"<?php
\n
return array();
\n
"
);
}
}
}
extensions/jui/composer.json
View file @
03861b6f
...
...
@@ -2,7 +2,7 @@
"name"
:
"yiisoft/yii2-jui"
,
"description"
:
"The Jquery UI extension for the Yii framework"
,
"keywords"
:
[
"yii"
,
"Jquery UI"
,
"renderer"
],
"type"
:
"
library
"
,
"type"
:
"
yii-extension
"
,
"license"
:
"BSD-3-Clause"
,
"support"
:
{
"issues"
:
"https://github.com/yiisoft/yii2/issues?state=open"
,
...
...
@@ -17,5 +17,8 @@
},
"autoload"
:
{
"psr-0"
:
{
"yii
\\
jui
\\
"
:
""
}
},
"extra"
:
{
"bootstrap"
:
"yii
\\
jui
\\
Extension"
}
}
extensions/mutex/composer.json
View file @
03861b6f
...
...
@@ -24,7 +24,4 @@
"autoload"
:
{
"psr-0"
:
{
"yii
\\
mutex
\\
"
:
""
}
},
"extra"
:
{
"bootstrap"
:
"yii
\\
mutex
\\
Extension"
}
}
extensions/smarty/composer.json
View file @
03861b6f
...
...
@@ -2,7 +2,7 @@
"name"
:
"yiisoft/yii2-smarty"
,
"description"
:
"The Smarty integration for the Yii framework"
,
"keywords"
:
[
"yii"
,
"smarty"
,
"renderer"
],
"type"
:
"
library
"
,
"type"
:
"
yii-extension
"
,
"license"
:
"BSD-3-Clause"
,
"support"
:
{
"issues"
:
"https://github.com/yiisoft/yii2/issues?state=open"
,
...
...
extensions/twig/composer.json
View file @
03861b6f
...
...
@@ -2,7 +2,7 @@
"name"
:
"yiisoft/yii2-twig"
,
"description"
:
"The Twig integration for the Yii framework"
,
"keywords"
:
[
"yii"
,
"twig"
,
"renderer"
],
"type"
:
"
library
"
,
"type"
:
"
yii-extension
"
,
"license"
:
"BSD-3-Clause"
,
"support"
:
{
"issues"
:
"https://github.com/yiisoft/yii2/issues?state=open"
,
...
...
framework/yii/base/Application.php
View file @
03861b6f
...
...
@@ -109,6 +109,19 @@ abstract class Application extends Module
* @var array the parameters supplied to the requested action.
*/
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.
...
...
framework/yii/base/Extension.php
0 → 100644
View file @
03861b6f
<?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
()
{
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment