Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Project existing with Symfony 6.4 #835

ArmandArthur started this conversation in General
Discussion options

Hello,

I have a project in Symfony 6.4 that i should install.

I run:
docker compose build --pull --no-cache
SYMFONY_VERSION=6.4.* docker compose up --wait
And i have the error :

Attempted to load class "Kernel" from namespace "App".\n
 Did you forget a "use" statement for "Symfony\Component\HttpKernel\Kernel"?
You must be logged in to vote

Replies: 3 comments 2 replies

Comment options

It's an API project

You must be logged in to vote
0 replies
Comment options

Hi @ArmandArthur!

If this is an existing project, you might want to use the docs/existing-project.md documentation page.

You must be logged in to vote
0 replies
Comment options

I missed one step but i have others errors.

Are you sure your repository is available with symfony's version 6.4?

Errors:

 An exception occurred in the driver: SQLSTATE[08006] [7] could not translate host name "app" to address: Name or se
 rvice not know
```n
Logs:

PHP Deprecated: Symfony\Component\Translation\t(): Implicitly marking parameter $domain as nullable is deprecated, the explicit nullable type must be used instead in /app/vendor/symfony/translation/Resources/functions.php on line 18

Deprecated: Symfony\Component\Translation\t(): Implicitly marking parameter $domain as nullable is deprecated, the explicit nullable type must be used instead in /app/vendor/symfony/translation/Resources/functions.php on line 18
PHP Deprecated: Symfony\Component\Dotenv\Dotenv::loadEnv(): Implicitly marking parameter $envKey as nullable is deprecated, the explicit nullable type must be used instead in /app/vendor/symfony/dotenv/Dotenv.php on line 100

Deprecated: Symfony\Component\Dotenv\Dotenv::loadEnv(): Implicitly marking parameter $envKey as nullable is deprecated, the explicit nullable type must be used instead in /app/vendor/symfony/dotenv/Dotenv.php on line 100
PHP Deprecated: Symfony\Component\Runtime\GenericRuntime::getResolver(): Implicitly marking parameter $reflector as nullable is deprecated, the explicit nullable type must be used instead in /app/vendor/symfony/runtime/GenericRuntime.php on line 86

Deprecated: Symfony\Component\Runtime\GenericRuntime::getResolver(): Implicitly marking parameter $reflector as nullable is deprecated, the explicit nullable type must be used instead in /app/vendor/symfony/runtime/GenericRuntime.php on line 86
PHP Deprecated: Symfony\Component\Runtime\RuntimeInterface::getResolver(): Implicitly marking parameter $reflector as nullable is deprecated, the explicit nullable type must be used instead in /app/vendor/symfony/runtime/RuntimeInterface.php on line 26

Deprecated: Symfony\Component\Runtime\RuntimeInterface::getResolver(): Implicitly marking parameter $reflector as nullable is deprecated, the explicit nullable type must be used instead in /app/vendor/symfony/runtime/RuntimeInterface.php on line 26
PHP Deprecated: Symfony\Component\Console\Input\ArgvInput::__construct(): Implicitly marking parameter $argv as nullable is deprecated, the explicit nullable type must be used instead in /app/vendor/symfony/console/Input/ArgvInput.php on line 46

Deprecated: Symfony\Component\Console\Input\ArgvInput::__construct(): Implicitly marking parameter $argv as nullable is deprecated, the explicit nullable type must be used instead in /app/vendor/symfony/console/Input/ArgvInput.php on line 46
PHP Deprecated: Symfony\Component\Console\Input\ArgvInput::__construct(): Implicitly marking parameter $definition as nullable is deprecated, the explicit nullable type must be used instead in /app/vendor/symfony/console/Input/ArgvInput.php on line 46

Deprecated: Symfony\Component\Console\Input\ArgvInput::__construct(): Implicitly marking parameter $definition as nullable is deprecated, the explicit nullable type must be used instead in /app/vendor/symfony/console/Input/ArgvInput.php on line 46
PHP Deprecated: Symfony\Component\Console\Input\Input::__construct(): Implicitly marking parameter $definition as nullable is deprecated, the explicit nullable type must be used instead in /app/vendor/symfony/console/Input/Input.php on line 36

Deprecated: Symfony\Component\Console\Input\Input::__construct(): Implicitly marking parameter $definition as nullable is deprecated, the explicit nullable type must be used instead in /app/vendor/symfony/console/Input/Input.php on line 36
PHP Deprecated: Constant E_STRICT is deprecated in /app/vendor/symfony/error-handler/ErrorHandler.php on line 58

Deprecated: Constant E_STRICT is deprecated in /app/vendor/symfony/error-handler/ErrorHandler.php on line 58
PHP Deprecated: Constant E_STRICT is deprecated in /app/vendor/symfony/error-handler/ErrorHandler.php on line 76

Deprecated: Constant E_STRICT is deprecated in /app/vendor/symfony/error-handler/ErrorHandler.php on line 76

You must be logged in to vote
2 replies
Comment options

All these errors are related to the already configured configuration and application:

  • SQLSTATE[08006] [7] could not translate host name "app" to address: Name or se rvice not know

    Incorrect host configured for database DSN.

  • Deprecated: <...>

    This is a deprecation message, not an error.

    It is recommended to review your application code so that it does not use deprecated behavior.

    For some cases, it will be enough to get the latest patch versions of the used Symfony packages within the minor version on 6.4.

    In any case, deprecations can be ignored if there are no plans to upgrade the project to the 7 major version of Symfony.

Comment options

Thank you,

I have install the project repository docker symfony and after i have put my files manually.
I change pg to mysql because i had a "driver error".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Converted from issue

This discussion was converted from issue #833 on September 03, 2025 07:04.

AltStyle によって変換されたページ (->オリジナル) /