Skip to content

[FrameworkBundle][HttpKernel] Introduce $buildDir argument to WarmableInterface::warmup to warm read-only artefacts in build_dir #19041

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

Merged
merged 1 commit into from
Oct 18, 2023

Conversation

alexandre-daubois
Copy link
Member

Fix #19034

If you don't need to preload anything, return an empty array.
If you don't need to preload anything, return an empty array. If read-only
artefacts need to be created, you can store them in a different directory
with the ``buildDir`` argument of the ``warmUp()`` method.
Copy link
Contributor

@OskarStark OskarStark Oct 18, 2023

Choose a reason for hiding this comment

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

Suggested change
with the ``buildDir`` argument of the ``warmUp()`` method.
with the ``$buildDir`` argument of the ``warmUp()`` method.

Not sure if we should use argument or parameter 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.

Let's use parameter everywhere 🙂


.. versionadded:: 6.4

The ``buildDir`` argument of the
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
The ``buildDir`` argument of the
The ``$buildDir`` parameter of the

Copy link
Contributor

@OskarStark OskarStark left a comment

Choose a reason for hiding this comment

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

A function signature contains parameters and is called with arguments

…ableInterface::warmup` to warm read-only artefacts in `build_dir`
@alexandre-daubois
Copy link
Member Author

Good rule of thumb, I always get the two mixed up 😅

@OskarStark
Copy link
Contributor

Thank you Alexandre.

@OskarStark OskarStark merged commit b1b12fa into symfony:6.4 Oct 18, 2023
@alexandre-daubois alexandre-daubois deleted the warmup-build-dir branch October 18, 2023 09:51
@Okhoshi
Copy link
Contributor

Okhoshi commented Oct 18, 2023

Thank you @alexandre-daubois ! It was on my todo-list for today, but you beat me to it 😅

@alexandre-daubois
Copy link
Member Author

Oops, my bad! I'll ask you next time so you can take the time to do it 🙂

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.

[FrameworkBundle][HttpKernel] Introduce $buildDir argument to WarmableInterface::warmup to warm read-only artefacts in build_dir
4 participants