Closed datamweb closed 1 year ago
Do you really need the Expected Output? Eventually, it will be necessary to parse the Config file to find the tokens.
/* service('auth')->routes($routes); */
/*
service('auth')->routes($routes);
*/
# service('auth')->routes($routes);
Do you really need the Expected Output?
Kenjis I was developing a project when I found out about this completely by accident. The fact is, in my opinion, it is not an important issue, however, I reported it so that I don't forget. I will close the topic now, if it is reported by someone else, it will be followed up.
PHP Version
8.1.5
CodeIgniter4 Version
4.3.2
Shield Version
dev
Which operating systems have you tested for this bug?
Windows
Which server did you use?
apache
Database
MySQL
Did you customize Shield?
No.
What happened?
Command
shield:setup
does not correctly update file app/Config/Routes.php if there is//service('auth')->routes($routes);
or// service('auth')->routes($routes);
.Steps to Reproduce
Adding the following to file app/Config/Routes.php:
Or
run :
See file app/Config/Routes.php,
service('auth')->routes($routes);
is not added.Expected Output
If there are
//service('auth')->routes($routes);
or// service('auth')->routes($routes);
, either leave the comment mode or add a newservice('auth')->routes($routes);
to the file.Anything else?
No response