public function setApp(Application $app)
    {
        $this->app = $app;
        AppSingleton::set($app);
        $this->pathResolver = $app['path_resolver'];

        // if RM is passed directly into Application c.v.a won't be set
        // but if called later then we don't want to override the value if someone else has changed it,
        // unless disableApacheChecks has been called.
        $default = true;
        if (isset($this->app['config.validator.apache_enabled'])) {
            $default = $this->app['config.validator.apache_enabled'];
        }
        $this->app['config.validator.apache_enabled'] = function () use ($default) {
            return $this->disableApacheChecks ? false : $default;
        };
    }
public function setApp(Application $app)
    {
        $this->app = $app;
        AppSingleton::set($app);
        $this->pathResolver = $app['path_resolver'];

        // if RM is passed directly into Application c.v.a won't be set
        // but if called later then we don't want to override the value if someone else has changed it,
        // unless disableApacheChecks has been called.
        $default = true;
        if (isset($this->app['config.validator.apache_enabled'])) {
            $default = $this->app['config.validator.apache_enabled'];
        }
        $this->app['config.validator.apache_enabled'] = function () use ($default) {
            return $this->disableApacheChecks ? false : $default;
        };
    }
public function setApp ( Application $ app ) { $ this -> app = $ app ; AppSingleton :: set ( $ app ) ; $ this -> pathResolver = $ app [ 'path_resolver' ] ; // if RM is passed directly into Application c.v.a won't be set // but if called later then we don't want to override the value if someone else has changed it, // unless disableApacheChecks has been called. $ default = true ; if ( isset ( $ this -> app [ 'config.validator.apache_enabled' ] ) ) { $ default = $ this -> app [ 'config.validator.apache_enabled' ] ; } $ this -> app [ 'config.validator.apache_enabled' ] = function ( ) use ( $ default ) { return $ this -> disableApacheChecks ? false : $ default ; } ; }
Don't use!

@deprecated Deprecated since 3.0, to be removed in 4.0.

@param Application $app
Don t use!