Skip to content

Commit

Permalink
#11 docfix
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmacdonald committed Jul 2, 2013
1 parent 19ca5a5 commit 49e89b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/usage.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ use RBAC\Manager\RoleManager;
$admin_view = Permission::create("admin_view", "Allows viewing of the admin section");

// Setup the role manager
$role_mgr = new RoleManager(new PDO("..."));
$role_mgr = new RoleManager(new PDOSQLiteAdapter(new PDO("...")));

// Save the permission to persistant storage
if (!$role_mgr->permissionSave($admin_view )) {
Expand All @@ -61,7 +61,7 @@ use PDO;
use RBAC\Role\Role;
use RBAC\Manager\RoleManager;

$storage_adapter = new PDOSQLiteAdapter(PDO("..."));
$storage_adapter = new PDOSQLiteAdapter(new PDO("..."));

// Setup the role manager
$role_mgr = new RoleManager($storage_adapter);
Expand Down Expand Up @@ -109,7 +109,7 @@ $user_id = 4;


// Setup the role manager
$storage_adapter = new PDOSQLiteAdapter(PDO("..."));
$storage_adapter = new PDOSQLiteAdapter(new PDO("..."));
$role_mgr = new RoleManager($storage_adapter);

// Fetch an existing role called admin
Expand Down

0 comments on commit 49e89b9

Please sign in to comment.