Update AppConfig.php

Fix access to $env property.