Skip to content

The make migrate command does not work when installing for "dev" #975

@mbusch3

Description

@mbusch3

When I change the .env file to APP_ENV=dev and install composer dependencies without the --no-dev flag, it seems that those additional dependencies are creating an error when installing UDOIT.

make migrate
docker compose -f docker-compose.nginx.yml run php php bin/console doctrine:migrations:migrate
Symfony\Component\ErrorHandler\Error\ClassNotFoundError^ {#66
  #message: """
    Attempted to load class "WebProfilerBundle" from namespace "Symfony\Bundle\WebProfilerBundle".\n
    Did you forget a "use" statement for another namespace?
    """
  #code: 0
  #file: "./src/Kernel.php"
  #line: 23
  trace: {
    ./src/Kernel.php:23 {
      App\Kernel->registerBundles(): iterable^
      › if ($envs[$this->environment] ?? $envs['all'] ?? false) {
      ›     yield new $class();
      › }
    }
    ./vendor/symfony/http-kernel/Kernel.php:382 { …}
    ./vendor/symfony/http-kernel/Kernel.php:766 { …}
    ./vendor/symfony/http-kernel/Kernel.php:128 { …}
    ./vendor/symfony/framework-bundle/Console/Application.php:166 { …}
    ./vendor/symfony/framework-bundle/Console/Application.php:72 { …}
    ./vendor/symfony/console/Application.php:171 { …}
    ./bin/console:42 { …}
  }
}
2024-11-19T15:20:38+00:00 [critical] Uncaught Error: Class "Symfony\Bundle\WebProfilerBundle\WebProfilerBundle" not found
make: *** [migrate] Error 255

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions