-
Notifications
You must be signed in to change notification settings - Fork 66
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
add install checker #3023
add install checker #3023
Conversation
use Symfony\Component\Console\Output\OutputInterface; | ||
use Zikula\Bundle\CoreBundle\YamlDumper; | ||
|
||
class UpgradeResetCommand extends ContainerAwareCommand |
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 this is only here for Travis, right?
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.
I don't see that it would be useful for anything else, no.
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.
I think it would be more appropriate not to add this command but update the version using a shell command inside the travis.yml file.
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.
PR welcome
|
This is finished. please review. |
@@ -79,25 +76,23 @@ public function initPhp() | |||
|
|||
public function requirementsMet(ContainerInterface $container) | |||
{ | |||
// several other requirements are checked before Symfony is loaded. |
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 below only Zikula-specific checks remain, right?
Nice addition 😄 |
function_exists('mb_get_info'), | ||
'mbstring is not installed in PHP. Zikula cannot install or upgrade without this extension.', | ||
'Install and enable the <strong>mbstring</strong> extension' | ||
); |
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.
This can be removed as well.
I've replaced the upgrade command now with the |
It's working 🎉 Only thing left to do is to remove the command file you introduced. |
Description
Add Symfony Installer's requirements check to our own installation and upgrade processes. Update and improve install and upgrade docs. Eliminate the use of system constants to indicate currently installed version and replace with permanently written parameter.