<?php namespace Larapress\Providers;

use Illuminate\Support\ServiceProvider;
use Larapress\Services\Captcha;
use Larapress\Services\Helpers;

class CaptchaServiceProvider extends ServiceProvider {

    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        $this->app->bind('captcha', function()
        {
            return new Captcha(
                $this->app['view'],
                $this->app['config'],
                $this->app['session.store'],
                new Helpers
            );
        });
    }

}

<?php namespace Larapress\Providers;

use Illuminate\Support\ServiceProvider;
use Larapress\Services\Captcha;
use Larapress\Services\Helpers;

class CaptchaServiceProvider extends ServiceProvider {

    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        $self = $this;

        $this->app->bind('captcha', function() use ($self)
        {
            return new Captcha(
                $self->app['view'],
                $self->app['config'],
                $self->app['session.store'],
                new Helpers
            );
        });
    }

}

Fix PHP 5.3 closure bug in the captcha service provider
Fix PHP 5.3 closure bug in the captcha service provider
