the approach on this PR was to split the application into 2 "kinds" of application, one to answer the request for the bot (BotApplication), and for response any URL that started with /api (ApliApplication).
Now when you use the URL UrlOfApplication/api/leaderboard you receive a JSON
I added two variables to .env file ENVIRONMENT and DEBUG don't forget to add on your .env
the next package was added: "symfony/http-kernel", "symfony/routing","symfony/framework-bundle": "5.1.8", don't forget run composer install before to start testing
created ContainerBuilderFactory to allow used the creation of the container in wherever part of the application, and used on functional testing, allow us to use the container inside the testing folder.
At this moment I missing some tests that it's the reason this it's a draft, but please review and make any comments, any comment is welcome 😄
Good morning team
the approach on this PR was to split the application into 2 "kinds" of application, one to answer the request for the bot (BotApplication), and for response any URL that started with /api (ApliApplication).
UrlOfApplication/api/leaderboard
you receive a JSON.env
fileENVIRONMENT
andDEBUG
don't forget to add on your.env
ContainerBuilderFactory
to allow used the creation of the container in wherever part of the application, and used on functional testing, allow us to use the container inside the testing folder.At this moment I missing some tests that it's the reason this it's a draft, but please review and make any comments, any comment is welcome 😄