PHP code example of hexis / error-digest-bundle
1. Go to this page and download the library: Download hexis/error-digest-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/ */
hexis / error-digest-bundle example snippets
// config/bundles.php
return [
// ...
Hexis\ErrorDigestBundle\ErrorDigestBundle::class => ['all' => true],
];
twig
<!-- in base.html.twig, before </body> -->
{{ error_digest_script() }}
<!-- with optional release + user id baked in -->
{{ error_digest_script({release: app_version, user: app.user.id}) }}
bash
php bin/console doctrine:migrations:migrate --em=superadmin --no-interaction