Projektowanie stron internetowych

Namespace declaration statement has to be the very first statement in the script in (…)/bootstrap.php.cache on line 4

Namespace declaration statement has to be the very first statement in the script in /app/bootstrap.php.cache on line 4

Prawdopodobna przyczyna pojawienia się komunikatu to błędnie wygenerowany plik /app/bootstrap.php.cache. Aby przywrócić prawidłowy plik bootstrap.php.cache należny uruchomić skrypt:

 ./vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php

Można też skorzystać z composer’a w celu pobrania nowych vendor’sów. Po aktualizacji bibliotek symfony wygeneruje aktualny plik bootstrap.php.cache

php composer.phar update