First of all. Please don't kill me :)
I want to propose to add the "Bundle" suffix back to the shortname (if my
arguments below are correct), and here is my reasoning:
I supported the removal of the Bundle suffix when the decision was taken, up
until yesterday, when I upgraded to PR9, and saw there will be some
inconsistencies with namespaces which might be confusing to users. If the
suffix stays off, this have to be made very clear to users.
Namespaces are the only place where the Bundle suffix is still applied, and
can't be taken off [1]. So unless the Bundle suffix is actually removed from
the Bundle names, which I know won't happen, and makes even less sense to
remove, there will be inconsistencies left on calling xyz vs xyzBundle in
the following places, which are all namespace related:
- Namespace declarations, obviously
- Entity relationships from another
bundle: @orm:ManyToOne(targetEntity="Acme\FooBundle\Entity\Bar")
- Entity Repository Annotations:
@orm:Entity(repositoryClass="Acme\FooBundle\Entity\BarRepository")
- Queries:
- shortname: $em->createQuery('SELECT b FROM AcmeFoo:Bar
- longname: $em->createQuery('SELECT b FROM Acme\FooBundle\Entity\Bar
I don't know if I left anything off.
This is not meaning to create an argument, and I'm fine either way the
decision is taken. Just want to put this forth, to make sure we are all fine
with this.
If we have to change back, like it happened with the html.twig vs twig.html
issue, now is better than any other time. This is why PRs are created, to
test things out in the "real world", though I know this changes are painful
sometimes :)
------
[1] We comply with the PSR-0 standard -
https://groups.google.com/d/msg/symfony-devs/l4Cqr35cxK4/DG4L0ke9H7IJ
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en