zikula/core — pull request #1528 by craigh (2014-01-04 02:12:52+00:00)
Title: [WIP] correct ClassNotFoundException on json update

if a module/bundle's json file is updated the Extensions module is not equipped to handle it.

the error that gets thrown is

> ClassNotFoundException: Attempted to load class "AcmeExampleModule" from namespace "Acme\ExampleModule" in /Applications/MAMP/htdocs/core.git/src/system/Zikula/Module/ExtensionsModule/Api/AdminApi.php line 500. Do you need to "use" it from another namespace?

| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | -
| Refs tickets | -
| License | MIT
| Doc PR | -

- [x] fix location of routing file (unrelated to this problem)
- [x] add upgrade method for bundle changes
- [ ] overcome need to load extensions module page **twice** to accomplish changes

For some reason, the changes happen in the bundles table immediately and the json file is of course changed already, but the extensions module fails to recognize those changes on the first page load. on **reloading again**, the changes are recognized and everything is fine.

you can test by toggling the psr value in the json file between 0/4 and seeing what happens every other page load.

@cmfcmf or @drak - can you help with this last part of the problem?