concrete/src/Foundation/Runtime/Boot/DefaultBooter.php
private function checkInstall(Application $app, Request $request)
    {
        if (!$app->isInstalled()) {
            if (
                !$request->matches('/install/*')
                && $request->getPath() != '/install'
                && !$request->matches('/ccm/assets/localization/*')
            ) {
                $manager = $app->make('Concrete\Core\Url\Resolver\Manager\ResolverManager');
                $response = new RedirectResponse($manager->resolve(['install']));

                return $response;
            }
        }
    }
private function checkInstall(Application $app, Request $request)
    {
        if (!$app->isInstalled()) {
            if (
                !$request->matches('/install/*')
                && $request->getPath() != '/install'
                && !$request->matches('/ccm/assets/localization/*')
            ) {
                $manager = $app->make('Concrete\Core\Url\Resolver\Manager\ResolverManager');
                $response = new RedirectResponse($manager->resolve(['install']));

                return $response;
            }
        }
    }
private function checkInstall ( Application $ app , Request $ request ) { if ( ! $ app -> isInstalled ( ) ) { if ( ! $ request -> matches ( '/install/*' ) && $ request -> getPath ( ) != '/install' && ! $ request -> matches ( '/ccm/assets/localization/*' ) ) { $ manager = $ app -> make ( 'Concrete\Core\Url\Resolver\Manager\ResolverManager' ) ; $ response = new RedirectResponse ( $ manager -> resolve ( [ 'install' ] ) ) ; return $ response ; } } }
If we haven't installed and we're not looking at the install directory, redirect.

@param Application $app
@param Request $request

@return null|Response
If we haven t installed and we re not looking at the install directory redirect .