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
69828422
Commit
69828422
authored
May 12, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow non-lowercase package names
fixes #3438
parent
9e0a157f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
CHANGELOG.md
extensions/composer/CHANGELOG.md
+1
-2
Installer.php
extensions/composer/Installer.php
+2
-2
No files found.
extensions/composer/CHANGELOG.md
View file @
69828422
...
@@ -4,8 +4,7 @@ Yii Framework 2 composer extension Change Log
...
@@ -4,8 +4,7 @@ Yii Framework 2 composer extension Change Log
2.
0.0-rc under development
2.
0.0-rc under development
--------------------------
--------------------------
-
no changes in this release.
-
Bug #3438: Fixed support for non-lowercase package names (cebe)
2.
0.0-beta April 13, 2014
2.
0.0-beta April 13, 2014
-------------------------
-------------------------
...
...
extensions/composer/Installer.php
View file @
69828422
...
@@ -110,7 +110,7 @@ class Installer extends LibraryInstaller
...
@@ -110,7 +110,7 @@ class Installer extends LibraryInstaller
foreach
(
$autoload
[
'psr-0'
]
as
$name
=>
$path
)
{
foreach
(
$autoload
[
'psr-0'
]
as
$name
=>
$path
)
{
$name
=
str_replace
(
'\\'
,
'/'
,
trim
(
$name
,
'\\'
));
$name
=
str_replace
(
'\\'
,
'/'
,
trim
(
$name
,
'\\'
));
if
(
!
$fs
->
isAbsolutePath
(
$path
))
{
if
(
!
$fs
->
isAbsolutePath
(
$path
))
{
$path
=
$this
->
vendorDir
.
'/'
.
$package
->
getName
()
.
'/'
.
$path
;
$path
=
$this
->
vendorDir
.
'/'
.
$package
->
get
Pretty
Name
()
.
'/'
.
$path
;
}
}
$path
=
$fs
->
normalizePath
(
$path
);
$path
=
$fs
->
normalizePath
(
$path
);
if
(
strpos
(
$path
.
'/'
,
$vendorDir
.
'/'
)
===
0
)
{
if
(
strpos
(
$path
.
'/'
,
$vendorDir
.
'/'
)
===
0
)
{
...
@@ -125,7 +125,7 @@ class Installer extends LibraryInstaller
...
@@ -125,7 +125,7 @@ class Installer extends LibraryInstaller
foreach
(
$autoload
[
'psr-4'
]
as
$name
=>
$path
)
{
foreach
(
$autoload
[
'psr-4'
]
as
$name
=>
$path
)
{
$name
=
str_replace
(
'\\'
,
'/'
,
trim
(
$name
,
'\\'
));
$name
=
str_replace
(
'\\'
,
'/'
,
trim
(
$name
,
'\\'
));
if
(
!
$fs
->
isAbsolutePath
(
$path
))
{
if
(
!
$fs
->
isAbsolutePath
(
$path
))
{
$path
=
$this
->
vendorDir
.
'/'
.
$package
->
getName
()
.
'/'
.
$path
;
$path
=
$this
->
vendorDir
.
'/'
.
$package
->
get
Pretty
Name
()
.
'/'
.
$path
;
}
}
$path
=
$fs
->
normalizePath
(
$path
);
$path
=
$fs
->
normalizePath
(
$path
);
if
(
strpos
(
$path
.
'/'
,
$vendorDir
.
'/'
)
===
0
)
{
if
(
strpos
(
$path
.
'/'
,
$vendorDir
.
'/'
)
===
0
)
{
...
...
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