Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: tna/zend-loader
base: d9ad766cb7
...
head fork: tna/zend-loader
compare: 505899e18c
Checking mergeability… Don't worry, you can still create the pull request.
Commits on Jul 25, 2011
@DASPRiD DASPRiD Some more router work done 8c31502
@DASPRiD DASPRiD Renamed autoregisterPlugins to registerPluginsOnLoad and added unit t…
…ests
95b0b1d
Commits on Sep 04, 2011
@stewartlord stewartlord Add missing pluggable interface file. 1720aab
Commits on Sep 29, 2011
@weierophinney weierophinney Moved ZendModule module into library e46b480
@EvanDotPro EvanDotPro Remove what is now an unnecessary namespace import from ModuleAutoloader a463ea9
Commits on Oct 01, 2011
@EvanDotPro EvanDotPro Optimize AutloaderFactory to only allow one instance of each autoload…
…er type

- Calling factory() with an autoloader class that is already registered will
result in setOptions() being called on the instance of that autoloader that is
already registered, preventing duplicate autoloaders from being registered
- Added unregisterAutoloaders() method which unregisters all autoloaders that
were registered via the AutoloaderFactory
- Added getRegisteredAutoloader($class) method to retrieve the registered
autoloader instances by class name
- 100% unit test coverage
9f1aa04
@EvanDotPro EvanDotPro ClassMapAutoloader should use require_once
- Normally this wouldn't be a problem when used as an spl autoloader, as PHP
wouldn't call it if the class already existed, but it was causing an issue in
the unit tests where autoload() was called explicitly.
0e79716
Commits on Oct 03, 2011
@weierophinney weierophinney Make AutoloaderFactory abstract
- Allows us to remove constructor entirely
8bb97bf
@weierophinney weierophinney Added unregisterAutoloader($autoloaderClass) method
- Allow unregistering a single autoloader at a time
5c116c1
Commits on Oct 08, 2011
@EvanDotPro EvanDotPro Allow module locations to be explicitly defined in paths array given …
…to module autoloader

Example: array('./modules', 'My\Bar' => '/path/to/barmodule', './other/modules')
f371af7
Commits on Oct 10, 2011
@akrabat akrabat Make the StandardAutoloader PSR-0 compliant, by nhonouring the the un…
…derscore in the namespace portion and not replacing it with a directory separator
a2e99fd
Commits on Oct 11, 2011
@EvanDotPro EvanDotPro Allow for nested directory in phar modules
For example, the module autoloader will look for MyModule\Module in
MyModule.phar.tar/MyModule/Module.php if Module.php is not found directly at
MyModule.phar.tar/Module.php. This should help cut down on support requests when
people tar/zip their modules using shell-integrated zip utilities that wrap the
contents in the parent folder within the archive.
6d4120c
@EvanDotPro EvanDotPro Improve module autoloader unit tests 3aad207
Commits on Oct 14, 2011
@mattcockayne mattcockayne corrected return on module auto loader
return false causing premature exit of foreach on class loading
ed78716
@juriansluiman juriansluiman Replace iterator_apply() with foreach(){} statements
The iterator_apply() is slower than foreach(){} so change all parts
where iterator_apply() is used. Foreach(){} is faster, measured with
a benchmark here: https://gist.github.com/1287753
2acec9d
@weierophinney weierophinney Merge branch 'hotfix/iterator_apply' of https://github.com/jurianslui…
…man/zf2 into hotfix/remove-iterator_apply

Conflicts:
	library/Zend/Mvc/Router/SimpleRouteStack.php
6bafc23
Commits on Oct 29, 2011
@EvanDotPro EvanDotPro ModuleAutoloader to build classmap array as it discovers Module classes
Rationale is that we can use this array to build a classmap cache which can be
used to bypass the scanning process for subsequent requests.
f310591
Commits on Nov 07, 2011
@EvanDotPro EvanDotPro Add require_once for SplAutoloader interface to ModuleAutoloader
Pointed out by ramonornela on IRC.
724cb8b
Commits on Nov 15, 2011
@EvanDotPro EvanDotPro Make Zend\Loader\PluginBroker LocatorAware
- Implement LocatorAware interface
- Tries to load plugin classes from the locator if it has been set
3cf47b9
Commits on Nov 19, 2011
@Freeaqingme Freeaqingme Adding default parameters for AutoloaderFactory::factory() 7369341
Commits on Nov 23, 2011
@EvanDotPro EvanDotPro Add realPharPath() method to allow resolving real_path for phars f05048b
@EvanDotPro EvanDotPro Unit tests for ZF2-101
- Also fixed an array key bug discovered while writing the unit tests
d10b14d
Commits on Dec 08, 2011
@weierophinney weierophinney Moved ResourceAutoloader to ZendFramework1Mvc module
- This autoloader was specific to the directory structures recommended for the
  ZF1 MVC. Moved all files related to it to the ZF1 MVC module
62c1e05
Commits on Dec 22, 2011
@EvanDotPro EvanDotPro Make Zend\Loader\ClassMapAutoloader prepend itself to the spl autoloa…
…der stack

As pointed out by SocalNick in IRC, not doing this was causing the
StandardAutoloader to always be used by modules, even if a classmap was
registered. If a user is registering a classmap autoloader, there is probably
no reason for it to be _AFTER_ the StandardAutoloader in a stack; especially if
the StandardAutoloader is serving as a fallback for the classmap.
c95c41b
Commits on Dec 31, 2011
@EvanDotPro EvanDotPro [Zend\Loader] Simplified StandardAutoloader::transformClassToFileName()
Now using a simple preg_match with two str_replace() calls. This eliminates the
calls to substr() and strpos() and seems to shave about 1% off the total
execution time of the skeleton app. Regardless of the tiny performance gain,
this change is worth while simply due to the simplification and increased
readability of the code.

StandardAutoloader tests still pass with this change. It should be functionally
identical to what we had before.
df899db
@EvanDotPro EvanDotPro [Zend\Loader] Coding standards in StandardAutoloader. 012e003
@EvanDotPro EvanDotPro [Zend\Loader] AutoloaderFactory should not register default StandardA…
…utoloader as fallback

This causes some useless processing and shouldn't be required in standard
setups. If users need to set it to act as a fallback autoloader, they can still
do so.
9a31c9b
Commits on Jan 01, 2012
@EvanDotPro EvanDotPro [Zend\Loader] Check for existence in AutoloaderFactory and SplAutoloader
This makes it possible to cache the most common Zend\* classes into a single
file for better performance.
6277078
Commits on Jan 02, 2012
@akrabat akrabat Merge remote-tracking branch 'EvanDotPro/hotfix/performance-audit' 9f6255f
Commits on Jan 04, 2012
@Maxell Maxell Fix for undefined index notices in de standard autoloader 6750ad1
Commits on Jan 05, 2012
@weierophinney weierophinney [2012] Updated copyrights from 2011 to 2012
- Happy new year!
3cd31f6
Commits on Jan 06, 2012
@Maxell Maxell Replaced DIRECTORY_SEPARATOR with / 8db933e
Commits on Jan 09, 2012
@weierophinney weierophinney Merge branch 'hotfix/standard-autoloader-notices' of https://github.c…
…om/Maxell/zf2 into hotfix/autoloader-robustness
4a95474
Commits on Jan 20, 2012
@marc-mabe marc-mabe - Fixed usage of glob within ModuleAutoloader using GlobIterator (rel…
…ated to discussion #741)

- test installed ext/phar ext/zlib ext/bzip2 before searching for phar's

- The test testCanAutoloadPharModules failes for 3 classes with the
  message "Can not rediclare class" :( I can't figure out why but before
  my changes I get the same errors
2e40d56
Commits on Feb 12, 2012
@marc-mabe marc-mabe Assignment in condition in Zend\Loader ef48d57
Commits on Feb 19, 2012
@RWOverdijk RWOverdijk Added check to validate supplied autoloader class 1e8e380
@RWOverdijk RWOverdijk Less code execution, const for standard autoloader. 33e6566
Commits on Feb 20, 2012
@RWOverdijk RWOverdijk Forgot to prepend "static" to const b979a82
Commits on Feb 23, 2012
@weierophinney weierophinney Merge branch 'hotfix/ZF2-168' of https://github.com/RWOverdijk/zf2 in…
…to hotfix/zf2-168
8749d23
@weierophinney weierophinney Calling AutoloaderFactory::factory() w/no args should register Standa…
…rdAutoloader
db7c601
Commits on Feb 24, 2012
@mwillbanks mwillbanks updated the autoloader factory to only check the subclass of with ver…
…sions 5.3.7 and greater
9f5126a
@mwillbanks mwillbanks fixed parse error a4a409f
@mwillbanks mwillbanks changed how version compare worked 450844a
Commits on Mar 08, 2012
@EvanDotPro EvanDotPro Fix ZF2-204 - Make setModulePaths accept array or Traversable c87466f
Commits on Mar 26, 2012
@DASPRiD DASPRiD Removed @namespace tags bf1ecba
Commits on Apr 01, 2012
@mhujer mhujer Loader 5e6c385
Commits on Apr 02, 2012
@Freeaqingme Freeaqingme Merge pull request #970 from DASPRiD/feature/namespace-tag-removal
Removed @namespace tags
505899e