Skip to content

wshafer/expressive-symfony-router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Symfony Route Integration for Expressive

Build Status Scrutinizer Code Quality codecov

Provides Symfony Route integration for Expressive.

Installation

Install this library using composer:

$ composer require symfony/routing:dev-master
$ composer require wshafer/expressive-symfony-router:dev-master

Documentation

Configuration

To enable this router using the Expressive Skeleton, make sure to add WShafer\Expressive\Symfony\Router\ConfigProvider::class to your ConfigAggregator located in config/config.php. In addition you'll want to remove your current router's config provider that was installed during setup.

Routing

$app->route('/book/{id}', YourRequestHandler::class)

Caching

To enable caching you need to add the following config:

return [
    'router' => [
        'symfony' => [
            'cache_enabled' => true,
            'cache_file'    => /my/cache/dir/cache_file.txt
        ],
    ],
];

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages