Slim-Extras
Slim-Extras copied to clipboard
(DEPRECATED) Slim Framework resources
Use in composer. json ``` "slim/slim": "~3.12.0", "slim/extras": "~2.0.0", ``` catch error ``` PHP Fatal error: Class 'Slim\\Middleware' not found in /opt/slim-app/vendor/slim/extras/Slim/Extras/Middleware/HttpBasicAuth.php on line 40 PHP Stack trace: PHP 1....
Hi. I am using this `Slim\Extras\Middleware\CsrfGuard.php` But I always get this error. `Invalid or missing CSRF token.` ``` if (! isset($_SESSION[$this->key])) { $_SESSION[$this->key] = sha1(serialize($_SERVER) . rand(0, 0xffffffff)); } $token...
A warning is triggered by PHP 7.2 with the last version of Slim 2 : ``` Declaration of Slim\Extras\Views\Twig::render($template) should be compatible with Slim\View::render($template, $data = NULL) in vendor/slim/extras/Slim/Extras/Views/Twig.php ```...
Code points to this class. Rename to fix composer autoloading.
Twig_Template render method accepts arrays not objects, the all() method of Slim\Helper\Set seems to work for this issue.
Solves the error: `Strict Standards: Declaration of Slim\Views\Twig::render() should be compatible with Slim\View::render($template, $data = NULL) in /Applications/MAMP/htdocs/slim/api/Slim/Views/Twig.php`
Why no docs about content negotiation? Does anyone could provide an content negotiation's API example?
Split the documentation between DateTimeLogWriter and HtmlLogWriter.
I am developing a service right now that is explicitly required to use basic auth while only checking the password, not the username. So I tried setting the username to...
You can use date_message_format to set the format of the date when it writes in the log. Now it supports all the log levels. Now all the request parameters are...