Skip to content

Commit

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

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

Expand Down

0 comments on commit b59833f

Please sign in to comment.