public function infoAction()
	{
		if (!$this->isConsoleRequest()) {
			throw new \RuntimeException('You can only use this action from a console!');
		}

		$console = $this->getConsole();
		$this->printConsoleBanner($console);

		$mapper = $this->getJobMapper();

		try {
			$pendingJobs = $mapper->getPending()->count();
			$runningJobs = $mapper->getRunning()->count();
			$finishedJobs = $mapper->getHistory()->count();

			$console->writeLine(sprintf('Pending jobs: %s', $pendingJobs));
			$console->writeLine(sprintf('Running jobs: %s', $runningJobs));
			$console->writeLine(sprintf('Finished jobs: %s', $finishedJobs));
		} catch (\PDOException $exception) {
			// Note: It's look like that either database adapter is not properly
			// defined or table database doesn't exist.
			$console->writeLine(
				'Something is bad with your database - either database ' .
				'adapter is not properly configured or database table is ' .
				'not created.', ConsoleColor::LIGHT_RED
			);
		}
	}
public function infoAction()
	{
		if (!$this->isConsoleRequest()) {
			throw new \RuntimeException('You can only use this action from a console!');
		}

		$console = $this->getConsole();
		$this->printConsoleBanner($console);

		$mapper = $this->getJobMapper();

		try {
			$pendingJobs = $mapper->getPending()->count();
			$runningJobs = $mapper->getRunning()->count();
			$finishedJobs = $mapper->getHistory()->count();

			$console->writeLine(sprintf('Pending jobs: %s', $pendingJobs));
			$console->writeLine(sprintf('Running jobs: %s', $runningJobs));
			$console->writeLine(sprintf('Finished jobs: %s', $finishedJobs));
		} catch (\PDOException $exception) {
			// Note: It's look like that either database adapter is not properly
			// defined or table database doesn't exist.
			$console->writeLine(
				'Something is bad with your database - either database ' .
				'adapter is not properly configured or database table is ' .
				'not created.', ConsoleColor::LIGHT_RED
			);
		}
	}
public function infoAction ( ) { if ( ! $ this -> isConsoleRequest ( ) ) { throw new \ RuntimeException ( 'You can only use this action from a console!' ) ; } $ console = $ this -> getConsole ( ) ; $ this -> printConsoleBanner ( $ console ) ; $ mapper = $ this -> getJobMapper ( ) ; try { $ pendingJobs = $ mapper -> getPending ( ) -> count ( ) ; $ runningJobs = $ mapper -> getRunning ( ) -> count ( ) ; $ finishedJobs = $ mapper -> getHistory ( ) -> count ( ) ; $ console -> writeLine ( sprintf ( 'Pending jobs: %s' , $ pendingJobs ) ) ; $ console -> writeLine ( sprintf ( 'Running jobs: %s' , $ runningJobs ) ) ; $ console -> writeLine ( sprintf ( 'Finished jobs: %s' , $ finishedJobs ) ) ; } catch ( \ PDOException $ exception ) { // Note: It's look like that either database adapter is not properly // defined or table database doesn't exist. $ console -> writeLine ( 'Something is bad with your database - either database ' . 'adapter is not properly configured or database table is ' . 'not created.' , ConsoleColor :: LIGHT_RED ) ; } }
Print info about current status.

@return void
@throws \RuntimeException Whenever is action accessed not via console request.
Print info about current status .