Skip to content
This repository has been archived by the owner on May 14, 2018. It is now read-only.

Commit

Permalink
Merge 6d59d5c into 09f36c3
Browse files Browse the repository at this point in the history
  • Loading branch information
delboy1978uk committed Nov 15, 2014
2 parents 09f36c3 + 6d59d5c commit b13fc3a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,14 @@ also check the [doctrine documentation](https://github.com/bjyoungblood/BjyAutho
4. Create a `./config/autoload/bjyauthorize.global.php` file and fill it with
configuration variable values as described in the following annotated example.

Here is an annotated sample configuration file:
Here is an annotated sample configuration file:

```php
<?php

// For PHP <= 5.4, you should replace any ::class references with strings
// remove the first \ and the ::class part and encase in single quotes

return [
'bjyauthorize' => [

Expand All @@ -68,9 +71,8 @@ return [
/* this module uses a meta-role that inherits from any roles that should
* be applied to the active user. the identity provider tells us which
* roles the "identity role" should inherit from.
*
* for ZfcUser, this will be your default identity provider
*/
*/
'identity_provider' => \BjyAuthorize\Provider\Identity\ZfcUserZendDb::class,

/* If you only have a default role and an authenticated role, you can
Expand Down
2 changes: 1 addition & 1 deletion data/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ CREATE TABLE IF NOT EXISTS `user_role` (
) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8 COLLATE = utf8_unicode_ci;

CREATE TABLE IF NOT EXISTS `user_role_linker` (
`user_id` INT UNSIGNED NOT NULL,
`user_id` INT(11) UNSIGNED NOT NULL,
`role_id` INT(11) NOT NULL,
PRIMARY KEY (`user_id`, `role_id`),
INDEX `idx_role_id` (`role_id` ASC),
Expand Down

0 comments on commit b13fc3a

Please sign in to comment.