Skip to content

Commit

Permalink
Migrate routing config to PHP
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Dec 7, 2021
1 parent 80b72d2 commit 855878e
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 15 deletions.
39 changes: 39 additions & 0 deletions src/Resources/config/routing/auth.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?php

/*
* This file is part of the NucleosUserAdminBundle package.
*
* (c) Christian Gripp <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Symfony\Component\Routing\Loader\Configurator;

use Nucleos\LastFmBundle\Action\AuthErrorAction;
use Nucleos\LastFmBundle\Action\AuthSuccessAction;
use Nucleos\LastFmBundle\Action\CheckAuthAction;
use Nucleos\LastFmBundle\Action\StartAuthAction;

return static function (RoutingConfigurator $routes): void {
$routes->add('nucleos_lastfm_success', '/success')
->controller(AuthSuccessAction::class)
->methods(['GET'])
;

$routes->add('nucleos_lastfm_error', '/error')
->controller(AuthErrorAction::class)
->methods(['GET'])
;

$routes->add('nucleos_lastfm_check', '/check')
->controller(CheckAuthAction::class)
->methods(['GET', 'POST'])
;

$routes->add('nucleos_lastfm_auth', '/')
->controller(StartAuthAction::class)
->methods(['GET'])
;
};
15 changes: 0 additions & 15 deletions src/Resources/config/routing/auth.yml

This file was deleted.

0 comments on commit 855878e

Please sign in to comment.