PHP code example of gridonic / database-utils-service-provider
1. Go to this page and download the library: Download gridonic/database-utils-service-provider 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/ */
gridonic / database-utils-service-provider example snippets
$app->register(new \Gridonic\Provider\DatabaseUtilsServiceProvider(), array(
'database_utils.fixtures' => PATH_RESOURCES . '/fixtures/*.yml',
'database_utils.password_keys' => array('password'),
'database_utils.security.salt' => 'abcd',
));
$app->register(new Silex\Provider\SecurityServiceProvider(), array(
'security.firewalls' => array(
'private' => array(
'pattern' => '^/admin',
'http' => true,
'users' => array(
'admin' => array('ROLE_ADMIN', 'ASv5vPSea0zB3EIpIB/mLOFAxkMIfh1EkTozyenPTZa0mGAiTC3n+mCAEdcYiITruuPaFb6GWFDiyF5fvJtqOg=='),
),
),
),
));