YAML Syntax for app/console
drkthunder02 opened this issue · comments
sudo php app/console
[Symfony\Component\Config\Exception\FileLoaderLoadException]
A "tags" entry must be an array for service "AppBundle\Controller" in /var
/www/BuySYS/app/config/services.yml. Check your YAML syntax in /var/www/Buy
SYS/app/config/services.yml (which is being imported from "/var/www/BuySYS/
app/config/config.yml").
[Symfony\Component\DependencyInjection\Exception\InvalidArgumentException]
A "tags" entry must be an array for service "AppBundle\Controller" in /var
/www/BuySYS/app/config/services.yml. Check your YAML syntax.
app/console doesn't exist anymore, you should be using bin/console now, Symfony 3.4.14 changes it to bin/console
ah.. thanks
php bin/console
PHP Fatal error: Uncaught Symfony\Component\Debug\Exception\ClassNotFoundException: Attempted to load class "AppKernel"
from the global namespace.
Did you forget a "use" statement for e.g. "Symfony\Bundle\SecurityBundle\Tests\Functional\app\AppKernel" or "Symfony\Bun
dle\FrameworkBundle\Tests\Functional\app\AppKernel"? in /var/www/BuySYS/bin/console:25
Stack trace:
#0 {main}
thrown in /var/www/BuySYS/bin/console on line 25
This works on my side...OH....since you had been on the 2.8 version, you should perform the following:
- Delete vender/ directory
- Delete composer.lock
- Make sure you pull latest code
- Run
composer install
orphp composer.phar install
to get all the fresh dependencies - Run
php bin/console cache:clear --no-warmup
, should be green.