François Pluchino
8b5c00bff0
Fix phpdoc
2014-07-16 15:17:38 +02:00
Jordi Boggiano
ac497feaba
CS fixes
2014-06-10 16:13:12 +02:00
Jordi Boggiano
fc9e1d0cff
CS fixes, refs #2823
2014-03-24 00:31:08 +01:00
Fred Emmott
7d3274224a
Only look for .hh files at runtime if using HHVM
...
The ClassMap generator will look regardless, but that's not a runtime
cost, so seems desirable (in case composer install/update needs to be
called with php5 for some resaon)
2014-03-18 16:21:45 -07:00
Fred Emmott
734e5e2f2b
Add autoload support for .hh files (HHVM)
...
HHVM is adding support for an alternative extension for files using
HHVM-specific features. Support them in the Class Map and PSR4
autoloaders.
Trivial example: https://github.com/fredemmott/hh_extension_toolset
2014-03-18 14:37:44 -07:00
Nicolas Grekas
00a6f8e38d
dedicated scope isolation function for autoload_real
2014-02-06 11:53:42 +01:00
Nicolas Grekas
6d7b9afc4b
scope isolation for user includes
2014-02-05 17:33:06 +01:00
Jordi Boggiano
3c5000ad7f
CS tweaks and cleanups, allow "" to set fallback dirs, refs #2459
2014-01-03 16:31:23 +01:00
Andreas Hennings
b08179e399
PSR-4 ClassLoader: Bug fix: PEAR-like path needs ".php" appended.
2013-11-25 23:22:31 +01:00
Andreas Hennings
5dd3c12d3d
Further improve comments.
2013-11-25 23:22:31 +01:00
Andreas Hennings
2e80d148f8
PSR-4 loader: Fix comments: PSR-0 related methods should have comments refering to PSR-0 and prefixes. PSR-4 related methods should have comments refering to PSR-4 and namespaces.
2013-11-25 23:22:30 +01:00
Andreas Hennings
c49a651d81
PSR-4 class loader: Add getters for PSR-4 prefixes. Rename PSR-0 related attributes by appending *Psr0. Add more comments.
2013-11-25 23:22:30 +01:00
Andreas Hennings
8142126b16
Add PSR-4 class loader. (tests needed)
2013-11-25 23:22:30 +01:00
Jordi Boggiano
8d0b7f278e
CS fixes
2013-06-13 13:28:24 +02:00
Jordi Boggiano
2e25a9298d
Document a hack
2013-05-12 23:43:54 +02:00
Jordi Boggiano
976fe48a72
Optimize grabbing of first char
2013-05-06 10:16:30 +02:00
Jordi Boggiano
94175ce432
Make performance of the class loader more constant across classes
2013-05-05 10:58:52 +02:00
Jordi Boggiano
bb95a0a788
Fix docblocks
2013-03-30 19:49:59 +01:00
Jordi Boggiano
e33aebc75d
Fix cs
2013-01-17 17:15:22 +01:00
Joe Holdcroft
7d5e4f76fb
Bug fix & changing loop + array_unshift to array_merge
2013-01-17 14:12:03 +00:00
Joe Holdcroft
538cdc914b
Making prepend work with fallbacks & coding standards
2012-11-14 11:46:49 +00:00
Joe Holdcroft
6510ee5c4c
Refactoring ClassLoader::add() to return early
2012-11-14 11:41:08 +00:00
Joe Holdcroft
e74223470a
- Adding prefix option to ClassLoader::add()
...
- Adding set method to ClassLoader for overwriting
2012-11-14 10:34:19 +00:00
Jordi Boggiano
348ec26c91
Always return false or a class name, fixes #1231
2012-10-18 18:55:49 +02:00
hinikato
1989479634
Fixed class normalization for class map case.
2012-10-16 13:59:33 +03:00
Jordi Boggiano
289d23b5cc
Optimization for autoload misses, refs #964
2012-08-14 19:50:19 +02:00
Jordi Boggiano
66e9dcddf4
CS fixes
2012-06-23 11:58:18 +02:00
Jordi Boggiano
1df9c62583
Cosmetic fixes to autoload generation
2012-06-11 14:15:08 +02:00
Jordi Boggiano
1bd4ccbd54
php-cs-fixer magic
2012-05-22 12:07:08 +02:00
Adán Lobato
61eb0119f1
Fixed some mistakes at PHPDoc
2012-05-15 16:18:18 +02:00
Baptiste "Talus" Clavie
15b70e2096
[ClassLoader] Removing trailing whitespaces
2012-03-22 11:45:44 +01:00
Baptiste "Talus" Clavie
6957743aee
[ClassLoader] Corrected indentation
2012-03-22 11:19:01 +01:00
Baptiste "Talus" Clavie
6782287091
[ClassLoader] Got an if-condition out of a unnecessary loop
2012-03-22 11:12:30 +01:00
Benjamin Eberlei
1af3604303
Add support for class-map generation.
2012-03-05 13:26:46 +01:00
Andrew Cobby
2451336284
Fixed syntax error in example code in header comment
2012-03-04 16:38:11 +11:00
Jordi Boggiano
ec352b1e84
Add support for adding more than one fallback dir
2012-02-09 18:18:43 +01:00
Jordi Boggiano
0e7c0d918f
Add useIncludePath support to ClassLoader
2012-02-09 15:42:47 +01:00
Jordi Boggiano
8c535b1961
Allow the Composer ClassLoader to be unregistered easily
2012-02-07 11:11:39 +01:00
Jordi Boggiano
2c367e7f39
Allow multiple fallback dirs
2011-12-21 16:56:18 +01:00
Pierre Minnieur
3b1843827a
removed the `return false` as we only need a positive return information
2011-12-21 13:30:25 +01:00
Pierre Minnieur
4242a05a0e
added Boolean return values for loadClass() method
2011-12-21 11:50:24 +01:00
Jordi Boggiano
d22b80d13b
Allow "" as autoload prefix for fallback dir
2011-12-18 21:09:40 +01:00
Jordi Boggiano
5e3c55f171
Add support for multiple packages defining the same namespace prefix
2011-11-03 21:10:39 +01:00
Jordi Boggiano
89caa9b117
Rewrite autoloader to use only PSR-0, remove splitting of PEAR path
2011-10-27 22:09:01 +02:00