File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments