private function tryParseContainerDump()
    {
        $success = false;

        $container_directory = $this->container->getParameter('container.dump_directory');
        $container_filename = $this->getContainerDumpFilename($this->container->getParameter('bootstrap_filepath'));
        $container_filepath = $container_directory.DIRECTORY_SEPARATOR.$container_filename;

        if (false === $this->container->getParameter('debug') && true === is_readable($container_filepath.'.php')) {
            require_once $container_filepath.'.php';
            $this->container = new $container_filename();
            $this->container->init();

            // Add current application into container
            $this->container->set('bbapp', $this->application);
            // Add container builder into container
            $this->container->set('container.builder', $this);

            $success = true;
        } else {
            $this->container->setParameter('container.filename', $container_filename);
        }

        return $success;
    }
private function tryParseContainerDump()
    {
        $success = false;

        $container_directory = $this->container->getParameter('container.dump_directory');
        $container_filename = $this->getContainerDumpFilename($this->container->getParameter('bootstrap_filepath'));
        $container_filepath = $container_directory.DIRECTORY_SEPARATOR.$container_filename;

        if (false === $this->container->getParameter('debug') && true === is_readable($container_filepath.'.php')) {
            require_once $container_filepath.'.php';
            $this->container = new $container_filename();
            $this->container->init();

            // Add current application into container
            $this->container->set('bbapp', $this->application);
            // Add container builder into container
            $this->container->set('container.builder', $this);

            $success = true;
        } else {
            $this->container->setParameter('container.filename', $container_filename);
        }

        return $success;
    }
private function tryParseContainerDump ( ) { $ success = false ; $ container_directory = $ this -> container -> getParameter ( 'container.dump_directory' ) ; $ container_filename = $ this -> getContainerDumpFilename ( $ this -> container -> getParameter ( 'bootstrap_filepath' ) ) ; $ container_filepath = $ container_directory . DIRECTORY_SEPARATOR . $ container_filename ; if ( false === $ this -> container -> getParameter ( 'debug' ) && true === is_readable ( $ container_filepath . '.php' ) ) { require_once $ container_filepath . '.php' ; $ this -> container = new $ container_filename ( ) ; $ this -> container -> init ( ) ; // Add current application into container $ this -> container -> set ( 'bbapp' , $ this -> application ) ; // Add container builder into container $ this -> container -> set ( 'container.builder' , $ this ) ; $ success = true ; } else { $ this -> container -> setParameter ( 'container.filename' , $ container_filename ) ; } return $ success ; }
This method try to restore container from a dump if it is possible, otherwise it will set
container.class, container.file and container.dir parameters into container.
This method try to restore container from a dump if it is possible otherwise it will set container . class container . file and container . dir parameters into container .