Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merged branch vicb/classcollectionloader (PR #6258)
This PR was submitted for the master branch but it was merged into the 2.2 branch instead (closes #6258). Commits ------- d4acd6d Classcollectionloader: fix traits + enhancements Discussion ---------- Classcollectionloader: fix traits + enhancements Commits: - some tweaks - generates smaller cache files (20% decrease for the SE) - fix traits dependency - thanks php for consistency https://bugs.php.net/bug.php?id=61554 --------------------------------------------------------------------------- by vicb at 2012-12-11T07:56:07Z @stloyd @fabpot thanks for the useful reviews, everything should be fixed now. --------------------------------------------------------------------------- by vicb at 2012-12-11T10:03:48Z Should be ready. --------------------------------------------------------------------------- by vicb at 2013-01-15T21:05:42Z @fabpot I initially marked this PR for 2.3 but it contains a fix for traits, should you merge it ? --------------------------------------------------------------------------- by vicb at 2013-01-23T20:09:32Z @fabpot could this be in 2.2 ? --------------------------------------------------------------------------- by vicb at 2013-02-01T14:07:08Z @fabpot fixed
- Loading branch information
Showing
4 changed files
with
215 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/Symfony/Component/ClassLoader/Tests/Fixtures/deps/traits.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
trait TD | ||
{} | ||
|
||
trait TZ | ||
{ | ||
use TD; | ||
} | ||
|
||
trait TC | ||
{ | ||
use TD; | ||
} | ||
|
||
trait TB | ||
{ | ||
use TC; | ||
} | ||
|
||
trait TA | ||
{ | ||
use TB; | ||
} | ||
|
||
class CTFoo | ||
{ | ||
use TA; | ||
use TZ; | ||
} | ||
|
||
class CTBar | ||
{ | ||
use TZ; | ||
use TA; | ||
} |