Exemplo n.º 1
0
 /**
  * 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);
         }
     }
 }
Exemplo n.º 2
0
    }
    protected static function path($bundle, $language, $file)
    {
        return Bundle::path($bundle) . "language/{$language}/{$file}" . EXT;
    }
    public function __toString()
    {
        return (string) $this->get();
    }
}
/**
 * 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);
    }