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

BlockHelper::includeJavascripts $media argument #130

Closed
dbu opened this issue Mar 7, 2014 · 2 comments
Closed

BlockHelper::includeJavascripts $media argument #130

dbu opened this issue Mar 7, 2014 · 2 comments

Comments

@dbu
Copy link
Contributor

dbu commented Mar 7, 2014

what is the $media argument on BlockHelper::includeJavascripts for?
https://github.com/sonata-project/SonataBlockBundle/blob/master/Templating/Helper/BlockHelper.php#L106

i guess it was added by accident but now can't be removed anymore as it would be a BC break. would be good to document those arguments to make things more understandable.

@rande
Copy link
Member

rande commented Mar 7, 2014

@dbu you are right ... yesterday I add some documentation 9cf0804

Not sure it is enough ...

@dbu
Copy link
Contributor Author

dbu commented Mar 7, 2014

funny you where working on this yesterday. stumbled on it while cleaning out some very old backlog items on the cmf documentation repo :-)

i was thinking of a phpdoc that explains what the $media parameter does (resp. explains its only a BC legacy). i guess as it was a required parameter, removing it and then adding the $basePath would be a very bad idea as suddenly everybody would set their base path to screen or dummy or other previous $media names.

@rande rande closed this as completed Mar 7, 2014
rande added a commit that referenced this issue Mar 7, 2014
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

No branches or pull requests

2 participants