-
-
Notifications
You must be signed in to change notification settings - Fork 866
Project existing with Symfony 6.4 #835
-
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"?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 3 comments 2 replies
-
It's an API project
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi @ArmandArthur!
If this is an existing project, you might want to use the docs/existing-project.md documentation page.
Beta Was this translation helpful? Give feedback.
All reactions
-
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
Beta Was this translation helpful? Give feedback.
All reactions
-
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 knowIncorrect 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.
Beta Was this translation helpful? Give feedback.
All reactions
-
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".
Beta Was this translation helpful? Give feedback.