Update Application.php

Remove inject method as it is deprecated and the Config component should be used instead.