Skip to content

Commit

Permalink
Fix deprecation, re-add session handler
Browse files Browse the repository at this point in the history
  • Loading branch information
samwilson authored Nov 1, 2022
1 parent eb219f2 commit b582831
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/packages/framework.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ framework:

session:
name: twyne
handler_id: null
handler_id: session.handler.native_file
storage_factory_id: session.storage.factory.native
save_path: "%kernel.project_dir%/var/sessions/%kernel.environment%"
cookie_secure: auto
Expand Down
2 changes: 1 addition & 1 deletion src/Security/LoginFormAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private function getUser($credentials): User
/**
* @inheritDoc
*/
public function authenticate(Request $request) /* : Passport; */
public function authenticate(Request $request): Passport
{
$credentials = [
'username' => $request->request->get('username'),
Expand Down

0 comments on commit b582831

Please sign in to comment.