Skip to content

Commit

Permalink
Change deprecated routing classes
Browse files Browse the repository at this point in the history
  • Loading branch information
elkuku committed Jan 31, 2024
1 parent fc8b77b commit ec6a3fc
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/Controller/DefaultController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Symfony\Component\DependencyInjection\Attribute\Autowire;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Routing\Attribute\Route;

#[Route('/', name: 'app_default', methods: ['GET'])]
class DefaultController extends BaseController
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/LoginFormController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\DependencyInjection\Attribute\Autowire;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Routing\Attribute\Route;
use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;

class LoginFormController extends AbstractController
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/ProfileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Routing\Attribute\Route;
use Symfony\Component\Security\Http\Attribute\IsGranted;

#[Route('/profile', name: 'app_profile', methods: ['GET', 'POST'])]
Expand Down
4 changes: 2 additions & 2 deletions src/Controller/Security/GitHubController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use KnpU\OAuth2ClientBundle\Client\ClientRegistry;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Routing\Attribute\Route;

class GitHubController extends AbstractController
{
Expand Down Expand Up @@ -34,6 +34,6 @@ public function connect(
#[Route(path: '/connect/check/github', name: 'connect_github_check', methods: ['GET'])]
public function connectCheck(): RedirectResponse
{
return $this->redirectToRoute('default');
return $this->redirectToRoute('app_default');
}
}
4 changes: 2 additions & 2 deletions src/Controller/Security/GitLabController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use KnpU\OAuth2ClientBundle\Client\ClientRegistry;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Routing\Attribute\Route;

class GitLabController extends AbstractController
{
Expand Down Expand Up @@ -36,6 +36,6 @@ public function connect(
#[Route(path: '/connect/check/gitlab', name: 'connect_gitlab_check', methods: ['GET'])]
public function connectCheck(): RedirectResponse
{
return $this->redirectToRoute('default');
return $this->redirectToRoute('app_default');
}
}
4 changes: 2 additions & 2 deletions src/Controller/Security/GoogleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use KnpU\OAuth2ClientBundle\Client\ClientRegistry;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Routing\Attribute\Route;

class GoogleController extends AbstractController
{
Expand Down Expand Up @@ -35,6 +35,6 @@ public function connect(
#[Route(path: '/connect/google/check', name: 'connect_google_check', methods: ['GET'])]
public function connectCheck(): RedirectResponse
{
return $this->redirectToRoute('default');
return $this->redirectToRoute('app_default');
}
}
2 changes: 1 addition & 1 deletion src/Controller/Security/GoogleIdentityController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace App\Controller\Security;

use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Routing\Attribute\Route;

class GoogleIdentityController extends AbstractController
{
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/Security/LoginFormController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\DependencyInjection\Attribute\Autowire;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Routing\Attribute\Route;
use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;

class LoginFormController extends AbstractController
Expand Down

0 comments on commit ec6a3fc

Please sign in to comment.