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

Make it possible to select a template fragment #38

Merged
merged 1 commit into from
Jul 29, 2023
Merged

Conversation

thekid
Copy link
Member

@thekid thekid commented Jul 27, 2023

@@ -8,6 +8,7 @@ interface Templates {
* @param string $name Template name
* @param [:var] $context
* @param io.streams.OutputStream $out
Copy link
Member Author

@thekid thekid Jul 27, 2023

Choose a reason for hiding this comment

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

The $fragment parameter is not part of this interface to prevent this BC break:

PHP Fatal error: Declaration of web\frontend\Templates@1::write($template, $context, $out) must be compatible with web\frontend\Templates::write($name, $context, $out, $fragment = null)

@thekid thekid added the enhancement New feature or request label Jul 27, 2023
@thekid thekid merged commit 783b5f6 into master Jul 29, 2023
18 checks passed
@thekid thekid deleted the feature/fragments branch July 29, 2023 10:33
@thekid
Copy link
Member Author

thekid commented Jul 29, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant