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

Why is tinker in require and not require-dev?#58131

Unanswered
marius-ciclistu asked this question inQ&A
Discussion options

Code that should not be run in production is useless overhead in production. From here the question.

Thank you.

You must be logged in to vote

Replies: 2 comments 9 replies

Comment options

Well, I love that I can run code in production when I can only debug it there. I don't have to deploy a patch and hope for the best.

You must be logged in to vote
3 replies
@marius-ciclistu
Comment options

Is that worth the fact that for each request its service provider is called and the class map gets bigger with it and its dependencies?

@shaedrich
Comment options

Maybe, the service provider can only be called when needed. That's the actual problem here.

@marius-ciclistu
Comment options

It has autodiscovery in its composer.json so you would need to manually register it on local and alter its composer.json to register it manually.

Anyway thank you. From my point of view it belongs to require-dev and it can be moved there in each project (template).

Comment options

Hmmm... where exactly is it defined as a require and not a require-dev?

You must be logged in to vote
6 replies
@Sophist-UK
Comment options

I looked in the composer.json of this repo (the framework) and it is shown only as a suggestion and not a require. So which template exactly?

@marius-ciclistu
Comment options

This repo is the kernel not the template that requires it.

@marius-ciclistu
Comment options

@Sophist-UK
Comment options

Why not make a Pull Request to move it to require-dev?

@marius-ciclistu
Comment options

Because I did that for my own project without the risk of upseting anyone by doing so :).

You know that the power of defaults is big.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
4 participants
@marius-ciclistu@Sophist-UK@shaedrich@henzeb

[8]ページ先頭

©2009-2025 Movatter.jp