Skip to content

Commit

Permalink
adjusted to latest jackalope api
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Stark committed Aug 1, 2011
1 parent 7c9d172 commit 62c5c44
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cli-config.php.dist
Expand Up @@ -7,7 +7,9 @@ $user = 'admin';
$pass = 'admin';

/* bootstrapping the repository implementation. for jackalope, do this: */
$repository = new \Jackalope\Repository(new \Jackalope\Factory, $url);
$factory = new \Jackalope\Factory;
$transport = new \Jackalope\Transport\Davex\Client($factory, $url);
$repository = new \Jackalope\Repository($factory, $transport);
$credentials = new \PHPCR\SimpleCredentials($user, $pass);
$session = $repository->login($credentials, $workspace);

Expand Down

0 comments on commit 62c5c44

Please sign in to comment.