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
f022a06e
Commit
f022a06e
authored
Oct 21, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renamed composer installation type.
parent
380bb5cc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Installer.php
extensions/composer/yii/composer/Installer.php
+4
-4
No files found.
extensions/composer/yii/composer/Installer.php
View file @
f022a06e
...
@@ -31,7 +31,7 @@ class Installer extends LibraryInstaller
...
@@ -31,7 +31,7 @@ class Installer extends LibraryInstaller
*/
*/
public
function
supports
(
$packageType
)
public
function
supports
(
$packageType
)
{
{
return
$packageType
===
'yii-extension'
;
return
$packageType
===
'yii
2
-extension'
;
}
}
/**
/**
...
@@ -65,7 +65,7 @@ class Installer extends LibraryInstaller
...
@@ -65,7 +65,7 @@ class Installer extends LibraryInstaller
protected
function
addPackage
(
PackageInterface
$package
)
protected
function
addPackage
(
PackageInterface
$package
)
{
{
$extension
=
[
$extension
=
[
'name'
=>
$package
->
get
Pretty
Name
(),
'name'
=>
$package
->
getName
(),
'version'
=>
$package
->
getVersion
(),
'version'
=>
$package
->
getVersion
(),
];
];
...
@@ -76,14 +76,14 @@ class Installer extends LibraryInstaller
...
@@ -76,14 +76,14 @@ class Installer extends LibraryInstaller
}
}
$extensions
=
$this
->
loadExtensions
();
$extensions
=
$this
->
loadExtensions
();
$extensions
[
$package
->
get
Unique
Name
()]
=
$extension
;
$extensions
[
$package
->
getName
()]
=
$extension
;
$this
->
saveExtensions
(
$extensions
);
$this
->
saveExtensions
(
$extensions
);
}
}
protected
function
removePackage
(
PackageInterface
$package
)
protected
function
removePackage
(
PackageInterface
$package
)
{
{
$packages
=
$this
->
loadExtensions
();
$packages
=
$this
->
loadExtensions
();
unset
(
$packages
[
$package
->
get
Unique
Name
()]);
unset
(
$packages
[
$package
->
getName
()]);
$this
->
saveExtensions
(
$packages
);
$this
->
saveExtensions
(
$packages
);
}
}
...
...
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