Skip to content

Commit cfef909

Browse files
committed
adjust to the non-static factory methods
1 parent 65cce1c commit cfef909

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cli-config.php.dist

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ $path_to_jackalope = __DIR__.'/../jackalope';
77
$autoload->add('Jackalope', "$path_to_jackalope/src");
88

99
/* credentials you plan to use */
10-
$url = 'http://127.0.0.1:8080/server/';
10+
$jackrabbit_url = 'http://127.0.0.1:8080/server/';
1111
$workspace = 'default';
1212
$user = 'admin';
1313
$pass = 'admin';
1414

1515
/* bootstrapping the repository implementation. for jackalope with jackrabbit, do this: */
16-
$repository = \Jackalope\RepositoryFactoryJackrabbit::getRepository(array("jackalope.jackrabbit_uri" => $url));
16+
$factory = new \Jackalope\RepositoryFactoryJackrabbit;
17+
$repository = $factory->getRepository(array("jackalope.jackrabbit_uri" => $jackrabbit_url));
1718
$credentials = new \PHPCR\SimpleCredentials($user, $pass);
1819
$session = $repository->login($credentials, $workspace);
1920

0 commit comments

Comments
 (0)