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

After auth:publish some config file variables values incorrect #390

Closed
manageruz opened this issue Jun 22, 2021 · 1 comment · Fixed by #407
Closed

After auth:publish some config file variables values incorrect #390

manageruz opened this issue Jun 22, 2021 · 1 comment · Fixed by #407
Labels

Comments

@manageruz
Copy link
Collaborator

manageruz commented Jun 22, 2021

When we publish sections by command php spark auth:publish into our app folder to modify them , some variables of Auth.php config file set incorrect by CLI.

  1. All values of $views array without \Auth path
    for example: 'login' => 'App\Views\login'
    must be: 'login' => 'App\Views\Auth\login'

  2. Layout value also without App path
    $viewLayout = 'App\Views\layout
    must be: $viewLayout = 'App\Views\Auth\layout

Also in User entity Entity namespaced incorrectly.
It is: use CodeIgniter\Entity;
must be: use CodeIgniter\Entity\Entity

CI v4.1.3 and MythAuth last dev version.
It seems that publish command should be fixed. Thanks.

@MGatner
Copy link
Collaborator

MGatner commented Jun 23, 2021

CodeIgniter\Entity\Entity came after this package. CodeIgniter\Entity is deprecated but will work just fine until the entire library can be updated with the new reference.

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

Successfully merging a pull request may close this issue.

2 participants