Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[HttpFoundation] added a directory fallback for when the class is not…
… found in registered namespaces and class prefixes
- Loading branch information
Showing
10 changed files
with
154 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
namespace Namespaced; | ||
|
||
class Bar { | ||
class Bar | ||
{ | ||
public static $loaded = true; | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
tests/Symfony/Tests/Component/HttpFoundation/Fixtures/Namespaced/Baz.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,8 @@ | ||
<?php | ||
|
||
namespace Namespaced; | ||
|
||
class Baz | ||
{ | ||
public static $loaded = true; | ||
} |
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
namespace Namespaced; | ||
|
||
class Foo { | ||
class Foo | ||
{ | ||
public static $loaded = true; | ||
} | ||
} |
5 changes: 3 additions & 2 deletions
5
tests/Symfony/Tests/Component/HttpFoundation/Fixtures/Pearlike/Bar.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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<?php | ||
|
||
class Pearlike_Bar { | ||
class Pearlike_Bar | ||
{ | ||
public static $loaded = true; | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/Symfony/Tests/Component/HttpFoundation/Fixtures/Pearlike/Baz.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,6 @@ | ||
<?php | ||
|
||
class Pearlike_Baz | ||
{ | ||
public static $loaded = true; | ||
} |
5 changes: 3 additions & 2 deletions
5
tests/Symfony/Tests/Component/HttpFoundation/Fixtures/Pearlike/Foo.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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<?php | ||
|
||
class Pearlike_Foo { | ||
class Pearlike_Foo | ||
{ | ||
public static $loaded = true; | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
tests/Symfony/Tests/Component/HttpFoundation/Fixtures/fallback/Namespaced/FooBar.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,8 @@ | ||
<?php | ||
|
||
namespace Namespaced; | ||
|
||
class FooBar | ||
{ | ||
public static $loaded = true; | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/Symfony/Tests/Component/HttpFoundation/Fixtures/fallback/Pearlike/FooBar.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,6 @@ | ||
<?php | ||
|
||
class Pearlike_FooBar | ||
{ | ||
public static $loaded = true; | ||
} |
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