Register listeners after app is initiated.
Support php -l.
CodeSniffer only use PSR-1 and PSR-2 as default.