-
Notifications
You must be signed in to change notification settings - Fork 6
Feat/core #105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Feat/core #105
Conversation
Oliboy50
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏 very good job 👏
thank you ❤️
147d2ef to
30945a3
Compare
|
Thanks for keeping alive this project ❤️ |
6657246 to
2552cbd
Compare
| "scripts": { | ||
| "symfony-scripts": [ | ||
| "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters", | ||
| "cp .env.dist .env", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we remove "incenteev/composer-parameter-handler" from "require" then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so... could you do it in this PR, please? 😅
9df4f9f to
ac2e688
Compare
Oliboy50
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
almost there 🙆♂
| $loader->load(function (ContainerBuilder $container) { | ||
| // Check if webpack dev server is up before using it | ||
| @file_get_contents($container->getParameter('webpack_dev_server_base_url')); | ||
| @file_get_contents($container->resolveEnvPlaceholders($container->getParameter('webpack_dev_server_base_url'), true)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| @file_get_contents($container->resolveEnvPlaceholders($container->getParameter('webpack_dev_server_base_url'), true)); | |
| @file_get_contents($container->getParameter('webpack_dev_server_base_url')); |
no need to resolve because we already convert the env variable to a parameter:
webpack_dev_server_base_url: '%env(WEBPACK_DEV_SERVER_BASE_URL)%'and this is a URL, so we don't need to resolve anything 🤔
| 'base_url' => sprintf( | ||
| '%s/%s', | ||
| rtrim($container->getParameter('webpack_dev_server_base_url'), '/'), | ||
| rtrim($container->resolveEnvPlaceholders($container->getParameter('webpack_dev_server_base_url'), true), '/'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| rtrim($container->resolveEnvPlaceholders($container->getParameter('webpack_dev_server_base_url'), true), '/'), | |
| rtrim($container->getParameter('webpack_dev_server_base_url'), '/'), |
| "scripts": { | ||
| "symfony-scripts": [ | ||
| "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters", | ||
| "cp .env.dist .env", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so... could you do it in this PR, please? 😅
| $dotenv = new Dotenv(); | ||
| $dotenv->load(__DIR__.'/../.env'); | ||
|
|
||
| if($_ENV['APP_ENV'] !== 'prod') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why don't we just delete this file (app_dev.php), instead of doing weird things like that?
Breaking changes:
Features: