Update for latest D8

As per my comment on http://vvv.tobiassjosten.net/php/php-repl-for-symfony-and-drupal/

This happened there: http://drupalcode.org/project/drupal.git/commitdiff/b1c684b
Merge pull request #1 from yched/patch-1

Update for latest D8