[ticket/12685] Add console collection and fixing CLI

Added a commands service collection and removed CLI container

PHPBB3-12685