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

Added missing mandatory parameter #6122

Closed
wants to merge 1 commit into from
Closed

Conversation

yceruto
Copy link
Member

@yceruto yceruto commented Jan 9, 2016

Q A
Doc fix? yes
New docs? no
Applies to all
Fixed tickets n/a

@@ -203,7 +203,7 @@ must also define additional blocks:
</div>
{% endset %}

{{ include('@WebProfiler/Profiler/toolbar_item.html.twig') }}
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', {'link': profiler_url}) }}
Copy link
Member

Choose a reason for hiding this comment

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

I think we should use either { link: true } or { link: false } here. Using profiler_url here looks like you could pass the actual URL here.

Copy link
Member

Choose a reason for hiding this comment

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

I agree with @xabbuh here.

Copy link
Member Author

Choose a reason for hiding this comment

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

@xabbuh I agree.

I think this variable could be named show_link instead?

Copy link
Member Author

Choose a reason for hiding this comment

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

@xabbuh
Copy link
Member

xabbuh commented Jan 12, 2016

👍

@@ -203,7 +203,7 @@ must also define additional blocks:
</div>
{% endset %}

{{ include('@WebProfiler/Profiler/toolbar_item.html.twig') }}
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', {'link': true}) }}
Copy link
Member

Choose a reason for hiding this comment

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

Or shouldn't we better set this to falselike it is done in the example before? Otherwise it might look strange for the reader that we changed the value.

Copy link
Member Author

Choose a reason for hiding this comment

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

It should be true because the example requires access to profile panel. In the example before, the link is not necessary.

@yceruto
Copy link
Member Author

yceruto commented Jan 13, 2016

perhaps we need to add any comments to talk about the link parameter?

@yceruto
Copy link
Member Author

yceruto commented Jan 15, 2016

👍

xabbuh added a commit that referenced this pull request Jan 16, 2016
This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes #6122).

Discussion
----------

Added missing mandatory parameter

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets | n/a

Commits
-------

0368933 Added parameter mandatory
xabbuh added a commit that referenced this pull request Jan 16, 2016
* remove wrong default value description
* fix code style[#6122] some tweaks
@xabbuh
Copy link
Member

xabbuh commented Jan 16, 2016

Thanks @yceruto, I have merged your PR into the 2.3 branch (that's why it is shown as closed instead of merged) and then made some little tweaks in 5873c63. I also opened symfony/symfony#17402 which proposes a way to make handling the template a bit more developer friendly.

@xabbuh xabbuh closed this Jan 16, 2016
@yceruto
Copy link
Member Author

yceruto commented Jan 18, 2016

👍

@yceruto yceruto deleted the patch-1 branch January 18, 2016 14:44
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.

3 participants