zikula/core — pull request #1280 by craigh (2013-10-01 20:55:51+00:00)
Title: remove use of deprecated exceptions in AbstractBase.

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

Fixes issues with argument order/type.

without these changes I received error like:

> Catchable Fatal Error: Argument 2 passed to Symfony\Component\HttpKernel\Exception\NotFoundHttpException::__construct() must be an instance of Exception, integer given, called in /Applications/MAMP/htdocs/core.git/src/lib/legacy/Zikula/AbstractBase.php on line 395 and defined in /Applications/MAMP/htdocs/core.git/src/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Exception/NotFoundHttpException.php line 28

I don't know if this is the right way to handle this atm because of the changes that have been made lately. This PR eliminates the use of `$debug` for many of these calls, but I don't know what it did, so maybe that's important? I changed more than just the `NotFound` exception since I was in there.