public static function register($registerViewExtension = false, Recaptcha $recaptcha = null, $appName = null)
    {
        $app = call_user_func_array(['\Slim\Slim', 'getInstance'], array_filter([$appName]));

        $recaptcha = self::registerSingleton($app, $recaptcha);

        if ($registerViewExtension) {
            self::registerViewExtension($app, $recaptcha);
        }
    }
public static function register($registerViewExtension = false, Recaptcha $recaptcha = null, $appName = null)
    {
        $app = call_user_func_array(['\Slim\Slim', 'getInstance'], array_filter([$appName]));

        $recaptcha = self::registerSingleton($app, $recaptcha);

        if ($registerViewExtension) {
            self::registerViewExtension($app, $recaptcha);
        }
    }
public static function register ( $ registerViewExtension = false , Recaptcha $ recaptcha = null , $ appName = null ) { $ app = call_user_func_array ( [ '\Slim\Slim' , 'getInstance' ] , array_filter ( [ $ appName ] ) ) ; $ recaptcha = self :: registerSingleton ( $ app , $ recaptcha ) ; if ( $ registerViewExtension ) { self :: registerViewExtension ( $ app , $ recaptcha ) ; } }
Register a Recaptcha instance with the application container.

@param  boolean                    $registerViewExtension Whether or not to also register a parser extension (if available).
@param  \Wowe\Recaptcha\Recaptcha  $recaptcha             The Recaptcha instance to bind to.
@param  string                     $appName               The name of the application to register with.
@return void
Register a Recaptcha instance with the application container .