-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix route loading in Contao 4.13 (#379)
- Loading branch information
Showing
4 changed files
with
17 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator; | ||
use Terminal42\NotificationCenterBundle\BulkyItem\BulkyItemStorage; | ||
use Terminal42\NotificationCenterBundle\Controller\DownloadBulkyItemController; | ||
|
||
return static function (RoutingConfigurator $routes): void { | ||
$routes->add('nc_bulky_item_download', '/notifications/download/{voucher}') | ||
->controller(DownloadBulkyItemController::class) | ||
->requirements(['voucher' => BulkyItemStorage::VOUCHER_REGEX]) | ||
; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters