-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move illuminate dependency to require-dev
- Loading branch information
1 parent
2ef2a80
commit 03edd42
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
03edd42
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@driesvints @themsaid Why was illuminate/notifications moved out of the require? Isn't it necessary to run the package?
03edd42
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes but you're never going to use this outside laravel/framework anyway which will include it. We removed it because it was causing a cyclic dependency.
03edd42
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a dependency of the package in order to get it to work. Moving it to the dev doesn't change anything. The only things in the dev should be the packages used for dev/testing exclusively. Any package used by the code is a requirement.
03edd42
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@driesvints @themsaid
Here is the dependency flow currently:
This is not a cyclic dependency. A cyclic dependency would be if illuminate/notifications required laravel/nexmo-notification-channel. Composer doesn't have issues with cyclic dependencies from what I found in my research, and moving it to the dev section wouldn't solve the issue if there was one.
03edd42
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AbdelElrafa a PR got merged which does exactly this to maintain BC for people who require illuminate/notifications separately: laravel/framework#26727
03edd42
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, thank you.
03edd42
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem! Appreciate it that you thought this through :)
03edd42
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AbdelElrafa if we remove them on the 5.7 branch they won't be included anymore in the https://github.com/illuminate/notifications subsplit and everyone who currently requires the 5.7.* version of that subsplit and relies on the slack and nexmo channels will experience a breaking change. The packages themselves are removed again on the master branch of laravel/framework like you suggest.
03edd42
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@driesvints 🤦♂️ I understand now... Although this might be a good argument as to why changing this in 5.7 is a breaking change.