в
Size: a a a
в
I
I
D
AC
Expected to find class "App\Controller\Events\EventsList" in file "/var/www/event.collector.sitename.ru/src/Controller/Events/EventsList.php" while importing services from resource "../src/", but it was not found! Check the namespace prefix used with the resource in /var/www/event.collector.sitename.ru/src/../config/services.yaml (which is being imported from "/var/www/event.collector.sitename.ru/src/Kernel.php").Не может найти тот старый контроллер. Если сделать composer dump-autoload, то вываливает
Class App\Controller\EventsList located in ./src/Controller/Events/EventsList.php does not comply with psr-4 autoloading standard. Skipping.ошибка сохраняется. Как его выпилить наглухо?
AC
bin/console cache:clear
попробуйтеExpected to find class "App\Controller\Events\EventsList" in file "/var/www/event.collector.sitename.ru/src/Controller/Events/EventsList.php" while importing services from resource "../src/", but it was not found! Check the namespace prefix used with the resource in /var/www/event.collector.sitename.ru/src/../config/services.yaml (which is being imported from "/var/www/event.collector.sitename.ru/src/Kernel.php").ту же ошибку
AK
AC
# This file is the entry point to configure your own services.
# Files in the packages/ subdirectory configure your dependencies.
# Put parameters here that don't need to change on each machine where the app is deployed
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
parameters:
services:
# default configuration for services in *this* file
_defaults:
autowire: true # Automatically injects dependencies in your services.
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
# makes classes in src/ available to be used as services
# this creates a service per class whose id is the fully-qualified class name
App\:
resource: '../src/'
exclude:
- '../src/DependencyInjection/'
- '../src/Entity/'
- '../src/Kernel.php'
- '../src/Tests/'
# controllers are imported separately to make sure services can be injected
# as action arguments even if you don't extend any base controller class
App\Controller\:
resource: '../src/Controller/'
tags: ['controller.service_arguments']
# add more service definitions when explicit configuration is needed
# please note that last definitions always *replace* previous ones
AC
C
AC
D
AC
./config/routes.yaml: controller: App\Controller\EventsListController::show
./src/Controller/EventsListController.php:class EventsListController
./vendor/composer/autoload_static.php: 'App\\Controller\\EventsListController' => __DIR__ . '/../..' . '/src/Controller/EventsListController.php',
./vendor/composer/autoload_classmap.php: 'App\\Controller\\EventsListController' => $baseDir . '/src/Controller/EventsListController.php',
AC