Thanks to visit codestin.com
Credit goes to github.com

Skip to content

(change): concrete to abstract implementation#565

Merged
jgrossi merged 1 commit intocorcel:5.0from
edwinsiebel:feat/use-application-contract
Sep 30, 2021
Merged

(change): concrete to abstract implementation#565
jgrossi merged 1 commit intocorcel:5.0from
edwinsiebel:feat/use-application-contract

Conversation

@edwinsiebel
Copy link
Contributor

@edwinsiebel edwinsiebel commented Jun 2, 2021

You are using an concreate implementation of Illuminate\Foundation\Application, while using the contract/interface Illuminate\Contracts\Foundation\Application allows for less rigid fixation, while still have the desired usage.

We are using a fork of Application with the interface; in our case, Corcel::isLaravel() returns false because we're not using Illuminate\Foundation\Application. However, with this PR, Corcel still works, and everybody who implements the Application interface still can enjoy using Corcel.

Should also be propagated to the older version of Corcel of course. If this will be merged, I can also make PR's for older version of Corcel.

@jgrossi jgrossi merged commit cf968e8 into corcel:5.0 Sep 30, 2021
@edwinsiebel edwinsiebel deleted the feat/use-application-contract branch September 30, 2021 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants