Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

package only works if app uses default name #29

Closed
vesper8 opened this issue May 11, 2015 · 2 comments
Closed

package only works if app uses default name #29

vesper8 opened this issue May 11, 2015 · 2 comments
Labels

Comments

@vesper8
Copy link

vesper8 commented May 11, 2015

I was just having trouble with another composer package which required me to rename my app to a different namespace.

And then I started having trouble with this package. It seems that because you use this statement in your controller

use App\Http\Controllers\Controller;

That this package will only work for applications that use the default namespace. I have renamed mine and the only way I could get your package to work was to rename that use statement and add my namespace.

This is the first time I am faced with such a conflict... is there something I am missing?

@mitulgolakiya
Copy link
Owner

@vesper8,
You are right, above use statement is static as of now. so if you change root namespace then it will create trouble. I will look into it and will find out a way to fix it in next release.

@mitulgolakiya
Copy link
Owner

@vesper8,
I just released a new version with custom app namespace support. Refer documentation here to make it working: https://github.com/mitulgolakiya/laravel-api-generator#using-with-custom-application-namespace

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants