Update Example Controller

Update the coding style of the example controller to use Javascript-style array syntax. Once we start using Symfony we should not be using outdated PHP versions.