Skip to content

[BestPractices] Proposing that we make the service names *just* a little bit longer #4463

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

Closed
wants to merge 1 commit into from

Conversation

weaverryan
Copy link
Member

Q A
Doc fix? no
New docs? no
Applies to 2.3+
Fixed tickets -

Hi guys!

This is a very minor proposed change for the best practices, which I would like to consider. The original best practice was because we don't want people to blindly follow the 3rd party service naming that's quite long. In your own app, they just need to be unique within yourself. But personally, I do use things like app.slugger, because I like to be able to grep my codebase for a service and reliably find it.

Thanks!

@javiereguiluz
Copy link
Member

In my opinion this seems very reasonable.

@xabbuh
Copy link
Member

xabbuh commented Nov 14, 2014

👍 It does not only make it easier to find your own services with grep, but it also decreases the possibility to conflict with future core services.

@stof
Copy link
Member

stof commented Nov 14, 2014

looks good to me

And btw, this means that the best practice would be the same than for shared bundles (given your bundle is named AppBundle and so its alias is app)

@Nek-
Copy link
Contributor

Nek- commented Nov 14, 2014

👍

@wouterj
Copy link
Member

wouterj commented Nov 14, 2014

I'm -0.3 on this, but I won't stop this PR from merging.

@weaverryan
Copy link
Member Author

Great - thanks for the feedback - especially Wouter - I like your -0.3, much more precise that the full +/-1 :).

weaverryan added a commit that referenced this pull request Nov 20, 2014
…s *just* a little bit longer (weaverryan)

This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #4463).

Discussion
----------

[BestPractices] Proposing that we make the service names *just* a little bit longer

| Q   | A
| --- | ---
| Doc fix? | no
| New docs? | no
| Applies to | 2.3+
| Fixed tickets | -

Hi guys!

This is a very minor proposed change for the best practices, which I would like to consider. The original best practice was because we don't want people to blindly follow the 3rd party service naming that's quite long. In your own app, they just need to be unique within yourself. But personally, I *do* use things like `app.slugger`, because I like to be able to grep my codebase for a service and reliably find it.

Thanks!

Commits
-------

b1ceb88 Proposing that we make the service names *just* a little bit longer
@weaverryan weaverryan closed this Nov 20, 2014
@weaverryan weaverryan deleted the best-practices-service-name branch November 20, 2014 21:56
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.

6 participants