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

Fixes the errors while running the project for Lumen to allow compatibility for Lumen as well #51

Closed
wants to merge 3 commits into from

Conversation

SachinBahukhandi
Copy link

Fixes: #50

@SachinBahukhandi SachinBahukhandi changed the title Fixes the errors while running the project for Lumen Fixes the errors while running the project for Lumen to allow compatibility for Lumen as well Apr 3, 2024
@SachinBahukhandi
Copy link
Author

Hey @viezel any plans on reviewing this, please?
It could be very much helpful for us like devs in using your package for lumen. Thanks!

Copy link
Contributor

@viezel viezel left a comment

Choose a reason for hiding this comment

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

Cannot accept this

$this->app->booted(function () {
$this->endSegment('laravel boot');
});
if($this->app instanceof \Laravel\Lumen\Application){
Copy link
Contributor

Choose a reason for hiding this comment

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

You cannot refer to this->app due to you just deleted the proptery

Copy link
Author

Choose a reason for hiding this comment

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

Yes apologies for that. I have added it to the base class.(EventsCollector)

});
if($this->app instanceof \Laravel\Lumen\Application){
$this->endSegment('laravel boot');
}
Copy link
Contributor

Choose a reason for hiding this comment

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

How did you test this logic? It seems incorrect as you have two endsection and incorrect type.

src/Collectors/EventsCollector.php Show resolved Hide resolved
@SachinBahukhandi SachinBahukhandi requested a review from viezel April 13, 2024 19:13
@viezel viezel closed this Jul 3, 2024
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.

Target class [Illuminate\\Foundation\\Application] does not exist while using the package with Lumen
2 participants