/** * Removes all resources of Imwg */ public function destroy() { if (static::$image_resource) { try { imageDestroy(static::$image_resource); static::$image_resource = null; foreach ($this as $key) { $this->{$key} = null; } } catch (Exception $e) { Error::exception($e); } } }
} } /** * laravel\laravel.php */ set_exception_handler(function ($e) { #require_once path('sys') . 'error' . EXT; Error::exception($e); }); set_error_handler(function ($code, $error, $file, $line) { #require_once path('sys') . 'error' . EXT; Error::native($code, $error, $file, $line); }); register_shutdown_function(function () { #require_once path('sys') . 'error' . EXT; Error::shutdown(); }); error_reporting(-1); Bundle::start(DEFAULT_BUNDLE); foreach (Bundle::$bundles as $bundle => $config) { if ($config['auto']) { Bundle::start($bundle); } } Router::register('*', '(:all)', function () { return Event::first('404'); }); $uri = URI::current(); $languages = Config::get('application.languages', array()); $languages[] = Config::get('application.language'); foreach ($languages as $language) {