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
remove .class parameters and start 2.0 preparation #287
Conversation
0e37cbb
to
2a0eb38
Compare
2a0eb38
to
46d472d
Compare
Nice circulary dependency, shall i add 1.1|2.0 on testing? |
46d472d
to
713f0ba
Compare
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.
can you go on @2.1
for symfony/testing
here, please.
.travis.yml
Outdated
env: SYMFONY_VERSION=2.8.* | ||
- php: 7.1 | ||
env: SYMFONY_VERSION=2.8.* |
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.
two times 2.8.* ?
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.
erm. whatever i did, thanks for spotting, deleting this
Resources/config/odm.xml
Outdated
<parameter key="doctrine_phpcr.odm.form.path.type.class">Doctrine\Bundle\PHPCRBundle\Form\Type\PathType</parameter> | ||
|
||
<parameter key="doctrine_phpcr.odm.metadata.driver_chain.class">Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain</parameter> | ||
<parameter key="doctrine_phpcr.odm.metadata.annotation.class">Doctrine\ODM\PHPCR\Mapping\Driver\AnnotationDriver</parameter> |
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 we can not remove those as Symfony-Doctrine-Bridge still uses those .class
parameters. to create the mapping driver stuff
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 do not see DoctrinePhpcrMappingsPass or the abstract class use any .class parameters. then again, i did not see where the DoctrinePhpcrMappingsPass is even registered at all. did you see where that happens?
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.
It was quite hard to find them. They live in AbstractDoctrineExtension of symfony/doctrine-bridge. I greped for anotation or .class the complete parameter id is concatenated in php except .class
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.
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.
+
+ <parameter key="doctrine_phpcr.odm.metadata.annotation.class">Doctrine\ODM\PHPCR\Mapping\Driver\AnnotationDriver</parameter>
+ <parameter key="doctrine_phpcr.odm.metadata.driver_chain.class">Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain</parameter>
+ <parameter key="doctrine_phpcr.odm.cache.array.class">Doctrine\Common\Cache\ArrayCache</parameter>
let the tests run again.
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.
ah, got it. added the other cache related parameters back as well, as they look used in the extension. this is one of the uglier pieces of symfony code ...
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 will add a note.
I am behind your branch with mine and recognized some missing class parameters which are used in AbstractDcotrineExtension of doctrine bridge. I got exceptions like:
I added 3 removed class parameters, you can find them on my diff against yours. |
Ahh, cool i got the same: https://travis-ci.org/doctrine/DoctrinePHPCRBundle/jobs/297847476 |
i think new versions of doctrine jumped to support only php 7.1 and better. i am actually considering the same for phpcr-odm to stay in sync with the rest of the doctrine universe. if we do that, we can drop php 5 here as well. wdyt? |
👍 for dropping php 5 |
- remove .class parameters - drop php 5 support
18a90da
to
be381b0
Compare
yay, looks green now! |
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.
yes
remove .class parameters and start 2.0 preparation remove duplicate line
No description provided.