PHP code example of rollerworks / route-autofill-bundle
1. Go to this page and download the library: Download rollerworks/route-autofill-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rollerworks / route-autofill-bundle example snippets
use Rollerworks\Bundle\RouteAutofillBundle\Response\RouteRedirectResponse;
// (string $route, array $parameters = [], int $status = 302)
return new RouteRedirectResponse('route-name');
return RouteRedirectResponse::toRoute('route-name')
->withFlash('success', 'translation.id', 'arguments');
bash
$ php composer.phar