This repository was archived by the owner on Sep 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +13
-13
lines changed
DependencyInjection/Repository/Factory
Unit/DependencyInjection/Repository/Factory Expand file tree Collapse file tree 6 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 14
14
use Symfony \Component \HttpKernel \Bundle \Bundle ;
15
15
use Symfony \Component \DependencyInjection \ContainerBuilder ;
16
16
use Symfony \Cmf \Bundle \ResourceBundle \DependencyInjection \Repository \Factory \FilesystemFactory ;
17
- use Symfony \Cmf \Bundle \ResourceBundle \DependencyInjection \Repository \Factory \DoctrinePhpcrFactory ;
17
+ use Symfony \Cmf \Bundle \ResourceBundle \DependencyInjection \Repository \Factory \PhpcrFactory ;
18
18
use Symfony \Cmf \Bundle \ResourceBundle \DependencyInjection \Repository \Factory \DoctrinePhpcrOdmFactory ;
19
19
use Symfony \Cmf \Bundle \ResourceBundle \DependencyInjection \Compiler \DescriptionEnhancerPass ;
20
20
@@ -24,8 +24,8 @@ public function build(ContainerBuilder $container)
24
24
{
25
25
$ extension = $ container ->getExtension ('cmf_resource ' );
26
26
//$extension->addRepositoryFactory('filesystem', new FilesystemFactory());
27
- $ extension ->addRepositoryFactory ('doctrine_phpcr ' , new DoctrinePhpcrFactory ());
28
- $ extension ->addRepositoryFactory ('doctrine_phpcr_odm ' , new DoctrinePhpcrOdmFactory ());
27
+ $ extension ->addRepositoryFactory ('phpcr/phpcr ' , new PhpcrFactory ());
28
+ $ extension ->addRepositoryFactory ('doctrine/phpcr-odm ' , new DoctrinePhpcrOdmFactory ());
29
29
30
30
$ container ->addCompilerPass (new DescriptionEnhancerPass ());
31
31
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ public function create(array $options)
34
34
*/
35
35
public function getName ()
36
36
{
37
- return 'doctrine_phpcr_odm ' ;
37
+ return 'doctrine/phpcr-odm ' ;
38
38
}
39
39
40
40
/**
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public function create(array $options)
33
33
*/
34
34
public function getName ()
35
35
{
36
- return 'filesystem ' ;
36
+ return 'puli/ filesystem ' ;
37
37
}
38
38
39
39
/**
Original file line number Diff line number Diff line change 16
16
use Symfony \Component \DependencyInjection \Definition ;
17
17
use Symfony \Cmf \Component \Resource \Repository \PhpcrRepository ;
18
18
19
- class DoctrinePhpcrFactory implements RepositoryFactoryInterface
19
+ class PhpcrFactory implements RepositoryFactoryInterface
20
20
{
21
21
/**
22
22
* {@inheritdoc}
@@ -34,7 +34,7 @@ public function create(array $options)
34
34
*/
35
35
public function getName ()
36
36
{
37
- return 'doctrine_phpcr ' ;
37
+ return 'phpcr/phpcr ' ;
38
38
}
39
39
40
40
/**
Original file line number Diff line number Diff line change 1
1
cmf_resource :
2
2
repositories :
3
3
test_repository_phpcr_odm :
4
- type : doctrine_phpcr_odm
4
+ type : doctrine/phpcr-odm
5
5
basepath : /test
6
6
7
7
test_repository_phpcr :
8
- type : doctrine_phpcr
8
+ type : phpcr/phpcr
9
9
basepath : /test
10
10
11
11
articles :
12
- type : doctrine_phpcr_odm
12
+ type : doctrine/phpcr-odm
13
13
basepath : /cmf/articles
14
14
15
15
# my_filesystem:
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Cmf \Bundle \ResourceBundle \Tests \Unit \DependencyInjection \Repository \Factory ;
13
13
14
- use Symfony \Cmf \Bundle \ResourceBundle \DependencyInjection \Repository \Factory \DoctrinePhpcrFactory ;
14
+ use Symfony \Cmf \Bundle \ResourceBundle \DependencyInjection \Repository \Factory \PhpcrFactory ;
15
15
use PHPCR \SessionInterface ;
16
16
use Symfony \Cmf \Component \Resource \Repository \PhpcrRepository ;
17
17
use PHPCR \NodeInterface ;
18
18
19
- class DoctrinePhpcrFactoryTest extends FactoryTestCase
19
+ class PhpcrFactoryTest extends FactoryTestCase
20
20
{
21
21
private $ session ;
22
22
@@ -62,6 +62,6 @@ public function testBasepath()
62
62
63
63
protected function getFactory ()
64
64
{
65
- return new DoctrinePhpcrFactory ();
65
+ return new PhpcrFactory ();
66
66
}
67
67
}
You can’t perform that action at this time.
0 commit comments