updated repository factory

see https://github.com/phpcr/phpcr/pull/61