/** * @{inheritdoc} */ protected function execute(InputInterface $input, OutputInterface $output) { $this->application = $this->getApplication()->getApplication(); $this->fixtureLoader = $this->getContainer()->get('demo.website_loader'); $this->dataRepository = $this->getBundle()->getBaseDirectory() . DIRECTORY_SEPARATOR . 'Data' . DIRECTORY_SEPARATOR; $output = new SymfonyStyle($input, $output); $output->title('BackBee Demonstration Website Importer'); $output->progressStart(3); $lines = $this->loadFixtures(); $output->progressAdvance(); $output->note('✓ Updated BackBee Application'); $website = $this->updateWebsite(); $output->progressAdvance(); $output->note(sprintf('✓ Updated Domain to ``%s`` with label ``%s``', $website['domain'], $website['label'])); $this->importAssets(); $output->progressAdvance(); $output->note('✓ Imported pictures assets'); $output->newline(); $output->success('Website loaded with success.'); }