Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[ExpressionLanguage] Document ExpressionFunction::fromPhp#7517

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
xabbuh merged 6 commits intosymfony:masterfrommaidmaid:exp-from-php
Feb 28, 2017

Conversation

@maidmaid
Copy link
Contributor

@xabbuhxabbuh added this to the3.3 milestoneFeb 21, 2017

ExpressionFunction::fromPhp('strtoupper');

It allows namespaced PHP function where second parameter must be defined to name expression::
Copy link
Member

Choose a reason for hiding this comment

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

[...] where the second [...]

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Done

@xabbuh
Copy link
Member

Please also add aversionadded directive:

..versionadded::3.3    The ``ExpressionFunction::fromPhp()`` method was introduced in Symfony 3.3.

@xabbuh
Copy link
Member

👍

Status: Reviewed

@maidmaid
Copy link
ContributorAuthor

Result:

screenshot from 2017-02-21 19-06-31

link to temp doc

Copy link
Member

@javiereguiluzjaviereguiluz left a comment

Choose a reason for hiding this comment

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

👍

@xabbuh
Copy link
Member

@maidmaid This should work. The template used to render the preview is not exactly the same as the one used on symfony.com (we don't update it every time small changes are made to the website).

@maidmaid
Copy link
ContributorAuthor

Cool, thank you for your reviews :)

..tip::

You can create an expression function from a PHP function with the
Copy link
Contributor

Choose a reason for hiding this comment

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

"You can create ..." => "To create ..."

Copy link
Contributor

@HeahDudeHeahDude left a comment

Choose a reason for hiding this comment

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

👍

@xabbuh
Copy link
Member

Thank you@maidmaid.

@xabbuhxabbuh merged commit415c4ec intosymfony:masterFeb 28, 2017
xabbuh added a commit that referenced this pull requestFeb 28, 2017
…hp (maidmaid, javiereguiluz)This PR was merged into the master branch.Discussion----------[ExpressionLanguage] Document ExpressionFunction::fromPhpcfsymfony/symfony#21122Commits-------415c4ec Update extending.rst478400a Minor reword059155f Add versionadded6c9e09d Fix typoc70ea7f Fix typo6d9af37 Add fromPhp tip
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@xabbuhxabbuhxabbuh left review comments

@javiereguiluzjaviereguiluzjaviereguiluz approved these changes

+1 more reviewer

@HeahDudeHeahDudeHeahDude approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

3.3

Development

Successfully merging this pull request may close these issues.

5 participants

@maidmaid@xabbuh@javiereguiluz@HeahDude@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp