-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Upgrade Symfony to 3.4 LTS #8515
Upgrade Symfony to 3.4 LTS #8515
Conversation
composer.json
Outdated
"symfony-tests-dir": "tests", | ||
"symfony-assets-install": "relative", | ||
"incenteev-parameters": { | ||
"file": "app/config/parameters.yml" | ||
} | ||
}, | ||
"author": "PrestaShop", |
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.
for what it means, the "author" key is not allowed in Composer configuration => https://getcomposer.org/doc/04-schema.md#authors
@jocel1 I don't know why the |
Tests still don't pass, the build is green only because I don't have commited the |
@@ -128,7 +127,6 @@ | |||
"PrestaShopBundle\\Install\\Upgrade::migrateSettingsFile", | |||
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", | |||
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", | |||
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", |
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.
no more installAssets?
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.
we never install assets, as we don't use web folder :)
@@ -7,6 +7,9 @@ parameters: | |||
prestashop.security.voter.product.class: PrestaShopBundle\Security\Voter\PageVoter | |||
|
|||
services: | |||
_defaults: | |||
public: 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.
So you had to set it as default AND for each service?
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.
only for them where Symfony cry a river, but it was not supposed to happen "in the book" :p
install-dev/index.php
Outdated
@@ -36,6 +36,7 @@ | |||
try { | |||
require_once(_PS_INSTALL_PATH_.'classes'.DIRECTORY_SEPARATOR.'controllerHttp.php'); | |||
require_once(_PS_INSTALL_PATH_.'classes'.DIRECTORY_SEPARATOR.'HttpConfigureInterface.php'); | |||
dump(spl_autoload_functions ());die; |
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.
debug stuff ? :)
@eternoendless I have an issue with "welcome" module installation... any hint? |
See 8b06534 |
@Quetzacoalt91 so |
if ('dev' === $this->getEnvironment()) { | ||
$bundles[] = new Symfony\Bundle\WebServerBundle\WebServerBundle(); | ||
} | ||
|
||
/** | ||
* @see https://symfony.com/doc/2.8/configuration/external_parameters.html#environment-variables |
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.
needs to be removed may be improved before release of 1.7.4
@alegout I choose you! ... to finish up this PR 😄 |
If we're ok to skip the two related tests that can be covered by QA functional tests, there is nothing specific to the migration to finish: decision must be done here, also someone from QA team need to check if Stock Management part of back office still works as expected. Good luck @alegout, don't hesitate to mail/slack me if you have some questions :) |
classes/Tools.php
Outdated
$sf2Refresh = new Refresh($env); | ||
$sf2Refresh->addCacheClear(); | ||
$ret = $sf2Refresh->execute(); | ||
$dir = _PS_ROOT_DIR_ . '/var/cache*/' . $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.
- _PS_ROOT_DIR_ . '/var/cache*/' . $env
+ _PS_ROOT_DIR_ . '/var/cache/' . $env
Hello @mickaelandrieu & @alegout |
Seen while running the
|
tests are green, and I've managed to install/re-install successfully: can you review this pull request one more time @marionf please? :) |
@marionf done! Just forgot 1 very old commit :) |
Ok for me :) |
🎉 |
composer.lock
file + "Clear Cache" action in Performance page should not break.This change is