protected function buildContentRoute(Route $route, $name)
    {
        $contentType = $route->getContent();
        $contents    = $this->app['content_repository']->listContents($contentType);

        $this->logger->log(sprintf(
            'Building route <comment>%s</comment> for <info>%s</info> <comment>%s(s)</comment>',
            $name,
            count($contents),
            $route->getContent()
        ));
        $this->logger->getProgress(count($contents));
        $this->logger->start();

        foreach ($contents as $content) {
            $this->builder->build($route, $name, [$contentType => $content]);
            $this->logger->advance();
        }

        $this->logger->finish();
    }
protected function buildContentRoute(Route $route, $name)
    {
        $contentType = $route->getContent();
        $contents    = $this->app['content_repository']->listContents($contentType);

        $this->logger->log(sprintf(
            'Building route <comment>%s</comment> for <info>%s</info> <comment>%s(s)</comment>',
            $name,
            count($contents),
            $route->getContent()
        ));
        $this->logger->getProgress(count($contents));
        $this->logger->start();

        foreach ($contents as $content) {
            $this->builder->build($route, $name, [$contentType => $content]);
            $this->logger->advance();
        }

        $this->logger->finish();
    }
protected function buildContentRoute ( Route $ route , $ name ) { $ contentType = $ route -> getContent ( ) ; $ contents = $ this -> app [ 'content_repository' ] -> listContents ( $ contentType ) ; $ this -> logger -> log ( sprintf ( 'Building route <comment>%s</comment> for <info>%s</info> <comment>%s(s)</comment>' , $ name , count ( $ contents ) , $ route -> getContent ( ) ) ) ; $ this -> logger -> getProgress ( count ( $ contents ) ) ; $ this -> logger -> start ( ) ; foreach ( $ contents as $ content ) { $ this -> builder -> build ( $ route , $ name , [ $ contentType => $ content ] ) ; $ this -> logger -> advance ( ) ; } $ this -> logger -> finish ( ) ; }
Build content route

@param Route $route
@param string $name
Build content route