dingo / dingo/api

Bootstrap path in cache command

Open
#995 2 comments 0 reactions 0 assignees View on GitHub
discussion enhancement
Dominant language
PHP
Stars
9.4k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

In Laravel 5.2.23 (I think), a new `bootstrapPath()` method was added to the application container to allow for updating where the bootstrap directory lives. Today I ran into errors when using the `api:routes` command because my bootstrap directory isn't at the root like the cache command expects.

I was about to send a pull request to update the cache command to use the new method, but when I saw the Composer file referenced some 5.1 components, I wasn't sure it would be accepted since the method was only recently added.

Is there a chance of being able to use the `bootstrapPath()` method instead of hard-coding the path in? If so, would you want me to check for a Laravel version or for the existence of the `bootstrapPath()` method?

Appreciate your feedback!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.