Skip to content

Commit

Permalink
symfony error handler
Browse files Browse the repository at this point in the history
  • Loading branch information
dp committed Mar 31, 2015
1 parent dcb9f5a commit ad560ed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 3 additions & 0 deletions Source/Ice/Bootstrap/Ice.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ class Ice extends Bootstrap
public function init(ClassLoader $loader, $force = false)
{
parent::init($loader, $force);

set_error_handler('Ice\Core\Logger::errorHandler');
register_shutdown_function('Ice\Core\Logger::shutdownHandler');
}

protected static function getDefaultKey()
Expand Down
5 changes: 3 additions & 2 deletions Source/Ice/Bootstrap/Symfony.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
use Composer\Autoload\ClassLoader;
use Ice\Core\Bootstrap;

class Symfony extends Bootstrap {
public function init(ClassLoader $loader, $force = true)
class Symfony extends Bootstrap
{
public function init(ClassLoader $loader, $force = true)
{
parent::init($loader, $force);
}
Expand Down
3 changes: 0 additions & 3 deletions Source/Ice/Core/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,6 @@ public static function init()

ini_set('display_errors', !Environment::getInstance()->isProduction());

set_error_handler('Ice\Core\Logger::errorHandler');
register_shutdown_function('Ice\Core\Logger::shutdownHandler');

ini_set('xdebug.var_display_max_depth', -1);
ini_set('xdebug.profiler_enable', 1);
ini_set('xdebug.profiler_output_dir', Module::getInstance()->get('logDir') . 'xdebug');
Expand Down

0 comments on commit ad560ed

Please sign in to comment.