Access to $app in Hkz\Application changed to public