Skip to content

Commit

Permalink
Merge pull request #776 from codeigniter4/datamweb-docs-fix-extend-co…
Browse files Browse the repository at this point in the history
…ntrollers

docs: fix example code of extending controller
  • Loading branch information
kenjis authored Aug 8, 2023
2 parents 0bf28b2 + 377cb5e commit fb5484d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,11 @@ updates that might happen in the controllers.
namespace App\Controllers;

use CodeIgniter\Shield\Controllers\LoginController as ShieldLogin;
use CodeIgniter\HTTP\RedirectResponse;

class LoginController extends ShieldLogin
{
public function logoutAction()
public function logoutAction(): RedirectResponse
{
// new functionality
}
Expand Down

0 comments on commit fb5484d

Please sign in to comment.