[ticket/12685] Add console collection and fixing CLI

Added a commands service collection and removed CLI container

PHPBB3-12685
[ticket/12685] Add space after foreach

PHPBB3-12685
[ticket/12685] We need extensions enabled

PHPBB3-12685
[ticket/12685] Add --safe-mode

PHPBB3-12685
[ticket/12685] Removed spaces

PHPBB3-12685
[ticket/12685] Container is dumped by default

PHPBB3-12685
[ticket/12685] Add a new line

PHPBB3-12685
[ticket/12685] Inject console.command_collection instead of the container

PHPBB3-12685
[ticket/12685] Removed unused USE statement

PHPBB3-12685
[ticket/12685] Override getDefaultInputDefinition()

PHPBB3-12685
[ticket/12685] Do not dump container

PHPBB3-12685
[ticket/12685] Replace getParameterOption with hasParameterOption

PHPBB3-12685
[ticket/12685] Setup class loader for extensions only if not in safe mode

PHPBB3-12685
Merge pull request #2576 from carlo94it/ticket/12685

[ticket/12685] New CLI container for load extensions

* carlo94it/ticket/12685:
  [ticket/12685] Setup class loader for extensions only if not in safe mode
  [ticket/12685] Replace getParameterOption with hasParameterOption
  [ticket/12685] Do not dump container
  [ticket/12685] Override getDefaultInputDefinition()
  [ticket/12685] Removed unused USE statement
  [ticket/12685] Inject console.command_collection instead of the container
  [ticket/12685] Add a new line
  [ticket/12685] Container is dumped by default
  [ticket/12685] Removed spaces
  [ticket/12685] Add --safe-mode
  [ticket/12685] We need extensions enabled
  [ticket/12685] Add space after foreach
  [ticket/12685] Add console collection and fixing CLI