daylerees / sanitizer

Sanitize data using a number of mutation methods.
259 stars 22 forks source link

Compatible with PHP 5.3 #11

Closed luisdalmolin closed 10 years ago

luisdalmolin commented 10 years ago

Just a quick fix to the SanitizerServiceProvider.php file to use $app of $this->app inside a closure and be compatible with PHP 5.3.

    public function register()
    {
        $this->app['sanitizer'] = $this->app->share(function ($app) {
            return new Sanitizer($app);
        });
    }