src/Stevemo/Cpanel/CpanelServiceProvider.php
public function registerPassword()
    {
        $app = $this->app;

        $app->bind('Stevemo\Cpanel\User\Form\PasswordFormInterface', function($app)
        {
           return new PasswordForm(
               new PasswordValidator($app['validator'], new MessageBag),
               $app->make('Stevemo\Cpanel\User\Repo\CpanelUserInterface'),
               $app->make('Stevemo\Cpanel\User\UserMailerInterface')
           );
        });

        $app->bind('Stevemo\Cpanel\User\UserMailerInterface', function($app)
        {
            return new UserMailer();
        });
    }
public function registerPassword()
    {
        $app = $this->app;

        $app->bind('Stevemo\Cpanel\User\Form\PasswordFormInterface', function($app)
        {
           return new PasswordForm(
               new PasswordValidator($app['validator'], new MessageBag),
               $app->make('Stevemo\Cpanel\User\Repo\CpanelUserInterface'),
               $app->make('Stevemo\Cpanel\User\UserMailerInterface')
           );
        });

        $app->bind('Stevemo\Cpanel\User\UserMailerInterface', function($app)
        {
            return new UserMailer();
        });
    }
public function registerPassword ( ) { $ app = $ this -> app ; $ app -> bind ( 'Stevemo\Cpanel\User\Form\PasswordFormInterface' , function ( $ app ) { return new PasswordForm ( new PasswordValidator ( $ app [ 'validator' ] , new MessageBag ) , $ app -> make ( 'Stevemo\Cpanel\User\Repo\CpanelUserInterface' ) , $ app -> make ( 'Stevemo\Cpanel\User\UserMailerInterface' ) ) ; } ) ; $ app -> bind ( 'Stevemo\Cpanel\User\UserMailerInterface' , function ( $ app ) { return new UserMailer ( ) ; } ) ; }
Register bindings for the password reset

@author Steve Montambeault
@link   http://stevemo.ca
Register bindings for the password reset