PHP code example of jield-webdev / jield-authorize
1. Go to this page and download the library: Download jield-webdev/jield-authorize 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/ */
jield-webdev / jield-authorize example snippets
namespace BjyAuthorize;
use Admin\Entity\Role;
use Admin\Service\UserService;
return [
'jield_authorize' => [
'default_role' => Role::ROLE_PUBLIC,
'authenticated_role' => Role::ROLE_USER,
'access_service' => UserService::class,
'permit_service' => UserService::class,
'cache_enabled' => false,
'role_entity_class' => Role::class,
],
];