Skip to content

Conversation

@MicaelMnl
Copy link

@MicaelMnl MicaelMnl commented Feb 5, 2020

Breaking changes:

  • Remove support vagrant
  • Add docker environment for local
  • Add support Heroku
  • Remove support PHP 5.6 and 7.0
  • Update PHP to 7.1
  • Update Nodejs to 12
  • Update Symfony to 3.4 with dependencies

Features:

  • Replace parameters.yml to .env
  • Add Procfile file

Copy link
Contributor

@Oliboy50 Oliboy50 left a 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 ❤️

@MicaelMnl MicaelMnl force-pushed the feat/core branch 6 times, most recently from 147d2ef to 30945a3 Compare February 7, 2020 14:04
@aiKrice
Copy link
Contributor

aiKrice commented Feb 7, 2020

Thanks for keeping alive this project ❤️

@MicaelMnl MicaelMnl force-pushed the feat/core branch 4 times, most recently from 6657246 to 2552cbd Compare February 11, 2020 11:07
"scripts": {
"symfony-scripts": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"cp .env.dist .env",
Copy link
Contributor

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?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

Copy link
Contributor

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? 😅

@MicaelMnl MicaelMnl force-pushed the feat/core branch 9 times, most recently from 9df4f9f to ac2e688 Compare February 18, 2020 14:14
Copy link
Contributor

@Oliboy50 Oliboy50 left a 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));
Copy link
Contributor

@Oliboy50 Oliboy50 Feb 18, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@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), '/'),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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",
Copy link
Contributor

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') {
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants