2017 © Pedro Peláez
 

library expressive-symfony-router

image

wshafer/expressive-symfony-router

  • Thursday, February 22, 2018
  • by wshafer
  • Repository
  • 2 Watchers
  • 3 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Symfony Route Integration for Expressive

Build Status Scrutinizer Code Quality codecov, (*1)

Provides Symfony Route integration for Expressive., (*2)

Installation

Install this library using composer:, (*3)

$ 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., (*4)

Routing

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

Caching

To enable caching you need to add the following config:, (*6)


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

The Versions