Skip to content
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

Symfony 4 support #295

Closed
wants to merge 13 commits into from

Conversation

istvancsabakis
Copy link

#SymfonyConHackday2017

@bytehead
Copy link
Member

Thanks for contributing! I'll place some comments where needed :)

@@ -1,5 +1,7 @@
<?php

namespace Oneup\UploaderBundle\Tests;
Copy link
Member

Choose a reason for hiding this comment

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

This should be namespace Oneup\UploaderBundle\Tests\App;

phpunit.xml.dist Outdated
@@ -2,7 +2,7 @@

<phpunit bootstrap="./Tests/bootstrap.php" colors="true">
<php>
<server name="KERNEL_DIR" value="Tests/App" />
Copy link
Member

Choose a reason for hiding this comment

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

KERNEL_DIR must not be removed, still used for Symfony 2.x and 3.x tests.

"twistor/flysystem-stream-wrapper": "^1.0"
},

"suggest": {
"knplabs/knp-gaufrette-bundle": "0.1.*",
"oneup/flysystem-bundle": "^1.2",
"oneup/flysystem-bundle": "^3.0",
Copy link
Member

@bytehead bytehead Nov 18, 2017

Choose a reason for hiding this comment

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

Be aware: to keep it compatible with Symfony 2, 3, and 4 as well as PHP 5.6 and 7.x the constraint should be ^1.2|^2.0|^3.0 :)

Copy link
Member

Choose a reason for hiding this comment

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

Sorry, didnt' see it's only a suggest. Then you're right!

composer.json Outdated
@@ -27,7 +27,7 @@
"require-dev": {
"amazonwebservices/aws-sdk-for-php": "1.5.*",
"knplabs/gaufrette": "0.2.*@dev",
"oneup/flysystem-bundle": "^3.0",
"oneup/flysystem-bundle": "^1.2|^3.0",
Copy link
Member

Choose a reason for hiding this comment

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

Could also be compatible with version 2.x of the oneup/flysystem-bundle:
"oneup/flysystem-bundle": "^1.2|^2.0|^3.0",

composer.json Outdated
@@ -16,7 +16,7 @@

"require": {
"php":">=5.4",
"symfony/framework-bundle": "^2.4|^3.0|^4.0",
"symfony/framework-bundle": "4.0.*",
Copy link
Member

Choose a reason for hiding this comment

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

We should still be compatible with Symfony 2.x and 3.x
^2.4|^3.0|^4.0 will be the right constraint.

@bytehead bytehead self-assigned this Nov 18, 2017
@bytehead
Copy link
Member

The tests fail probably due to symfony/symfony#24524.

@bytehead bytehead added this to the Version 2.0 milestone Nov 20, 2017
@istvancsabakis
Copy link
Author

istvancsabakis commented Nov 22, 2017

In symfony 4 all services will be private. We need to make OneupUploaderBundle services public by default or refractor services to remove container->get calls, or make public services used in tests.

@bytehead bytehead mentioned this pull request Nov 27, 2017
@bytehead
Copy link
Member

I'll close this in favour of #300. Thanks for the PR!

@bytehead bytehead closed this Nov 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants