diff --git a/.env.example b/.env.example index 508b6e21..2a0b2b96 100644 --- a/.env.example +++ b/.env.example @@ -9,47 +9,41 @@ # Real environment variables win over .env files. # # DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES. +# https://symfony.com/doc/current/configuration/secrets.html # # Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2). -# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration +# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration ###> symfony/framework-bundle ### APP_ENV=dev -ADMIN_TOKEN=CHANGE_THIS_STRING_HERE_sdkfsjkdfjriethRYJRYjedn -APP_SECRET=CHANGE_THIS_STRING_THERE_31dxsfg15dgf5hd8rfzawwwfxd -# Base website url, should contain https:// and having no trailing slash. example: BASE_URL=https://framadate.org -BASE_URL=https://localhost -WEBSITE_NAME=my_website_caisse -WEBSITE_LOGO=logo_cipherbliss.png -#TRUSTED_PROXIES=127.0.0.1,127.0.0.2 -#TRUSTED_HOSTS='^localhost|example\.com$' +APP_SECRET=ef29ce868e1edbcdca03e977a23dce9c ###< symfony/framework-bundle ### ###> doctrine/doctrine-bundle ### -# Format described at https://wwwx-special/nautilus-clipboard - #copy - #file:///home/poule/encrypted/stockage-syncable/www/development/html/date-poll-api/public/assets/img/logo_cipherbliss.png.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url -# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db" -# For a PostgreSQL database, use: "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=11" -# IMPORTANT: You MUST also configure your db driver and server_version in config/packages/doctrine.yaml -DATABASE_URL=mysql://framadate-admin:framadate-admin-password@127.0.0.1:5432/framadate-api +# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url +# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml +# ############################### +# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db" +# si la db mysql +DATABASE_URL="mysql://demoland:plopplop01@127.0.0.1:3306/tykayn?serverVersion=8&charset=utf8mb4" + +# si la db est postgresql +#DATABASE_URL="postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=16&charset=utf8" ###< doctrine/doctrine-bundle ### -###> nelmio/cors-bundle ### -CORS_ALLOW_ORIGIN=^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$ -###< nelmio/cors-bundle ### - -###> symfony/swiftmailer-bundle ### -# For Gmail as a transport, use: "gmail://username:password@localhost" -# For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode=" -# Delivery is disabled by default via "null://localhost" -MAILER_URL=sendmail://YOUR_WEBSITE -# set the support email who will answer users in case of emergency -SUPPORT_EMAIL=YOUR_EMAIL -###< symfony/swiftmailer-bundle ### +###> symfony/messenger ### +# Choose one of the transports below +# MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages +# MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages +MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0 +###< symfony/messenger ### ###> symfony/mailer ### -MAILER_DSN=smtp://localhost +MAILER_DSN=null://null ###< symfony/mailer ### -DATABASE_URL=mysql://framadate-admin:framadate-admin-password@127.0.0.1:5432/framadate-api +###> symfony/lock ### +# Choose one of the stores below +# postgresql+advisory://db_user:db_password@localhost/db_name +LOCK_DSN=flock +###< symfony/lock ### diff --git a/.env.local b/.env.local index 40193a16..2a0b2b96 100644 --- a/.env.local +++ b/.env.local @@ -9,44 +9,41 @@ # Real environment variables win over .env files. # # DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES. +# https://symfony.com/doc/current/configuration/secrets.html # # Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2). -# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration +# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration ###> symfony/framework-bundle ### APP_ENV=dev -ADMIN_TOKEN=CHANGE_THIS_STRING_HERE -APP_SECRET=CHANGE_THIS_STRING_THERE -# Base website url, should contain https:// and having no trailing slash. example: BASE_URL=https://framadate.org -BASE_URL=https://YOUR_WEBSITE -WEBSITE_NAME=Framadate_2 -WEBSITE_LOGO=logo.svg -#TRUSTED_PROXIES=127.0.0.1,127.0.0.2 -#TRUSTED_HOSTS='^localhost|example\.com$' +APP_SECRET=ef29ce868e1edbcdca03e977a23dce9c ###< symfony/framework-bundle ### ###> doctrine/doctrine-bundle ### # Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url -# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db" -# For a PostgreSQL database, use: "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=11" -# IMPORTANT: You MUST also configure your db driver and server_version in config/packages/doctrine.yaml -DATABASE_URL=mysql://framadate-admin:framadate-admin-password@localhost:3306/framadate_api -###< doctrine/doctrine-bundle ### -###> symfony/swiftmailer-bundle ### -# For Gmail as a transport, use: "gmail://username:password@localhost" -# For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode=" -# Delivery is disabled by default via "null://localhost" -MAILER_URL=sendmail://YOUR_WEBSITE -# set the support email who will answer users in case of emergency -SUPPORT_EMAIL=support-framadate@YOUR_WEBSITE -SPOOL_PATH=/var/www/html/date-poll-api/var/email/spool -###< symfony/swiftmailer-bundle ### +# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml +# ############################### +# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db" +# si la db mysql +DATABASE_URL="mysql://demoland:plopplop01@127.0.0.1:3306/tykayn?serverVersion=8&charset=utf8mb4" -###> nelmio/cors-bundle ### -CORS_ALLOW_ORIGIN='^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$' -###< nelmio/cors-bundle ### +# si la db est postgresql +#DATABASE_URL="postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=16&charset=utf8" +###< doctrine/doctrine-bundle ### + +###> symfony/messenger ### +# Choose one of the transports below +# MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages +# MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages +MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0 +###< symfony/messenger ### ###> symfony/mailer ### -# MAILER_DSN=smtp://localhost +MAILER_DSN=null://null ###< symfony/mailer ### -MESSENGER_TRANSPORT_DSN=doctrine://default + +###> symfony/lock ### +# Choose one of the stores below +# postgresql+advisory://db_user:db_password@localhost/db_name +LOCK_DSN=flock +###< symfony/lock ### diff --git a/.env.test b/.env.test deleted file mode 100755 index f3f1c0b0..00000000 --- a/.env.test +++ /dev/null @@ -1,6 +0,0 @@ -# define your env variables for the test env here -KERNEL_CLASS='App\Kernel' -APP_SECRET='$ecretf0rt3stxdf54df65df65g8hhkiliUOPIUOseBqgBEDNX' -SYMFONY_DEPRECATIONS_HELPER=999999 -PANTHER_APP_ENV=panther -ADMIN_TOKEN=testAdminToken \ No newline at end of file diff --git a/.gitignore b/.gitignore index bf7ba539..99db1a6b 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,9 @@ /vendor/* /var/cache/dev/ /var/log/ + +###> phpstan/phpstan ### +phpstan.neon +###< phpstan/phpstan ### +public/bundles/ +public/build/ diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 803a8048..f6c96ab6 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,5 +1,8 @@ + + @@ -20,14 +23,1430 @@ - - + + + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +