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

Add symfony 3.0 support #227

Merged
merged 3 commits into from
Feb 3, 2016
Merged

Add symfony 3.0 support #227

merged 3 commits into from
Feb 3, 2016

Conversation

GuilhemN
Copy link
Collaborator

@GuilhemN GuilhemN commented Dec 9, 2015

This PR adds symfony 3.0 support and uses safer version constraints.

(Tests are failing because of JMSSecurityExtraBundle)


script: phpunit --coverage-clover clover
script: if [ "$COVERAGE" == "true" ]; then phpunit --coverage-clover=clover; else phpunit; fi
Copy link
Contributor

Choose a reason for hiding this comment

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

that's why the older builds end up with a parse error: travis-ci/travis-ci#5206

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I do not understand what you mean.

Copy link
Contributor

Choose a reason for hiding this comment

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

obsolete actually. Some time ago travis provided phpunit 5 on all builds which caused a syntax error as phpunit 5 requires php 5.6.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ok thanks I didn't see that error ^^

@schmittjoh
Copy link
Owner

Is this ready, or does it still need changes in the security bundle?

@GuilhemN
Copy link
Collaborator Author

Still needs some changes, I didn't have the time to finalize it sorry...

@Jean85
Copy link
Contributor

Jean85 commented Dec 22, 2015

@Ener-Getick can I lend a hand? My PR on JMSSecurityExtraBundle could fix your problems maybe?

schmittjoh/JMSSecurityExtraBundle#197

@hacfi
Copy link

hacfi commented Dec 22, 2015

Been using this PR/fork for 1.5 weeks and it works like a charm!

@GuilhemN
Copy link
Collaborator Author

@schmittjoh it is ready now

@MisatoTremor
Copy link

@Ener-Getick Could you please also change
JMS\DiExtraBundle\Config\FastDirectoriesResource to implement SelfCheckingResourceInterface instead of ResourceInterface because ResourceInterface::isFresh is removed in 3.0 and has moved to SelfCheckingResourceInterface.
I don't know if there should be additional changes to FastDirectoriesResource, but at least this change will make int compatible with 3.0.

@GuilhemN
Copy link
Collaborator Author

Sure I'll change it.

@GuilhemN
Copy link
Collaborator Author

Done @MisatoTremor

@Ninir
Copy link

Ninir commented Dec 30, 2015

Nice work @Ener-Getick, thank you!

@Ma27 Ma27 mentioned this pull request Jan 10, 2016
@whyte624
Copy link

👍

1 similar comment
@Spea
Copy link

Spea commented Jan 11, 2016

👍

@GuilhemN
Copy link
Collaborator Author

Thank you @Ninir, I'm just waiting for schmittjoh/JMSSecurityExtraBundle#202 to be merged and then I'll update this PR.

@bassrock
Copy link

👍

3 similar comments
@khasinski
Copy link

👍

@e-doceo
Copy link

e-doceo commented Jan 12, 2016

+1

@lenar
Copy link

lenar commented Jan 17, 2016

👍

@GuilhemN
Copy link
Collaborator Author

For those who can't upgrade to symfony 3.0 because of this bundle, you can use temporary my own repository thanks to composer https://getcomposer.org/doc/05-repositories.md#vcs.

Just be aware that I will probably remove it when this PR will be merged.

@hacfi
Copy link

hacfi commented Jan 20, 2016

Been using @Ener-Getick’s branch for a while now and it’s been working flawlessly.

For the lazy ones..you can copy & paste this:

{
    "repositories": [
        {
            "type": "git",
            "url": "git@github.com:Ener-Getick/JMSDiExtraBundle.git"
        }
    ],
    "require": {
        "jms/di-extra-bundle": "dev-master"
    }
}

@AntoineLemaire
Copy link

👍

@dbu
Copy link

dbu commented Jan 25, 2016

@schmittjoh is there something preventing you from merging this and tagging another release?

@Ma27
Copy link
Contributor

Ma27 commented Jan 26, 2016

the JMSSecurityExtraBundle doesn't have a stable release yet, but you can use the fork of @Ener-Getick which should be pretty stable.

Am 25.01.2016 um 14:53 schrieb David Buchmann notifications@github.com:

@schmittjoh is there something preventing you from merging this and tagging another release?


Reply to this email directly or view it on GitHub.

GuilhemN added a commit that referenced this pull request Feb 3, 2016
@GuilhemN GuilhemN merged commit c0977b3 into schmittjoh:master Feb 3, 2016
@hacfi
Copy link

hacfi commented Feb 3, 2016

👏 :shipit:

@tobias-93
Copy link

@Ener-Getick could you tag a release?

@GuilhemN
Copy link
Collaborator Author

GuilhemN commented Feb 3, 2016

@tobias-93 there will be a beta phase before that I tag a stable release (see #224 (comment))

@tobias-93
Copy link

Oh yeah, I missed that comment. Thanks!

@maxpowel
Copy link

maxpowel commented Feb 8, 2016

Hi, Im getting this error:
Fatal error: Class 'Symfony\Component\DependencyInjection\ContainerAware' not found in /Users/maxpowel/roams/webapi/webapi/vendor/doctrine/doctrine-bundle/Controller/ProfilerController.php on line 28

Call Stack:
0.0004 231672 1. {main}() /Users/maxpowel/roams/webapi/webapi/bin/console:0
0.1386 1987504 2. Symfony\Component\Console\Application->run() /Users/maxpowel/roams/webapi/webapi/bin/console:29
0.1450 2226168 3. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /Users/maxpowel/roams/webapi/webapi/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:117
0.1450 2226392 4. Symfony\Component\HttpKernel\Kernel->boot() /Users/maxpowel/roams/webapi/webapi/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:68
0.7112 2627480 5. Symfony\Component\HttpKernel\Kernel->initializeContainer() /Users/maxpowel/roams/webapi/webapi/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:117
8.2818 29116528 6. Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp() /Users/maxpowel/roams/webapi/webapi/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:489
9.8735 32111192 7. JMS\DiExtraBundle\HttpKernel\ControllerInjectorsWarmer->warmUp() /Users/maxpowel/roams/webapi/webapi/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php:48
9.8735 32111464 8. JMS\DiExtraBundle\HttpKernel\ControllerInjectorsWarmer->findControllerClasses() /Users/maxpowel/roams/webapi/webapi/vendor/jms/di-extra-bundle/HttpKernel/ControllerInjectorsWarmer.php:35
9.9531 32264296 9. require_once('/Users/maxpowel/roams/webapi/webapi/vendor/doctrine/doctrine-bundle/Controller/ProfilerController.php') /Users/maxpowel/roams/webapi/webapi/vendor/jms/di-extra-bundle/HttpKernel/ControllerInjectorsWarmer.php:60

PHP 2. Symfony\Component\Console\Application->run() /Users/maxpowel/roams/webapi/webapi/bin/console:29
PHP 3. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /Users/maxpowel/roams/webapi/webapi/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:117
PHP 4. Symfony\Component\HttpKernel\Kernel->boot() /Users/maxpowel/roams/webapi/webapi/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:68
PHP 5. Symfony\Component\HttpKernel\Kernel->initializeContainer() /Users/maxpowel/roams/webapi/webapi/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:117
PHP 6. Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp() /Users/maxpowel/roams/webapi/webapi/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:489
PHP 7. JMS\DiExtraBundle\HttpKernel\ControllerInjectorsWarmer->warmUp() /Users/maxpowel/roams/webapi/webapi/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php:48
PHP 8. JMS\DiExtraBundle\HttpKernel\ControllerInjectorsWarmer->findControllerClasses() /Users/maxpowel/roams/webapi/webapi/vendor/jms/di-extra-bundle/HttpKernel/ControllerInjectorsWarmer.php:35
PHP 9. require_once() /Users/maxpowel/roams/webapi/webapi/vendor/jms/di-extra-bundle/HttpKernel/ControllerInjectorsWarmer.php:60

Symfony version 3.0.2 from scratch

@francoispluchino
Copy link

@maxpowel Use the 1.6.x-dev version (the next 1.6.2 version?) of DoctrineBundle. It's fixed only in dev branch for the moment, not in the 1.6.1 version.

@GuilhemN
Copy link
Collaborator Author

GuilhemN commented Feb 8, 2016

@maxpowel doctrine-bundle 1.6.2 is released so just run composer update ;-)

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.