This repository was archived by the owner on Sep 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 10 files changed +21
-15
lines changed Expand file tree Collapse file tree 10 files changed +21
-15
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class CmfResourceBundle extends Bundle
23
23
public function build (ContainerBuilder $ container )
24
24
{
25
25
$ extension = $ container ->getExtension ('cmf_resource ' );
26
- $ extension ->addRepositoryFactory ('filesystem ' , new FilesystemFactory ());
26
+ // $extension->addRepositoryFactory('filesystem', new FilesystemFactory());
27
27
$ extension ->addRepositoryFactory ('doctrine_phpcr ' , new DoctrinePhpcrFactory ());
28
28
$ extension ->addRepositoryFactory ('doctrine_phpcr_odm ' , new DoctrinePhpcrOdmFactory ());
29
29
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Cmf \Bundle \ResourceBundle \Registry ;
13
13
14
14
use Symfony \Cmf \Component \Resource \RepositoryRegistryInterface ;
15
- use Puli \ Repository \Api \ResourceRepository ;
15
+ use Symfony \ Cmf \ Component \ Resource \ Puli \Api \ResourceRepository ;
16
16
use Symfony \Component \DependencyInjection \ContainerInterface ;
17
17
18
18
/**
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ class FilesystemRepositoryTest extends BaseTestCase
17
17
{
18
18
public function setUp ()
19
19
{
20
+ $ this ->markTestSkipped ('Puli Filesystem is not available. ' );
20
21
$ this ->repositoryRegistry = $ this ->getContainer ()->get ('cmf_resource.registry ' );
21
22
}
22
23
Original file line number Diff line number Diff line change @@ -12,6 +12,6 @@ cmf_resource:
12
12
type : doctrine_phpcr_odm
13
13
basepath : /cmf/articles
14
14
15
- my_filesystem :
16
- type : filesystem
17
- base_dir : %kernel.root_dir%/../filesystem
15
+ # my_filesystem:
16
+ # type: filesystem
17
+ # base_dir: %kernel.root_dir%/../filesystem
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Cmf \Bundle \ResourceBundle \Tests \Unit \DependencyInjection ;
13
13
14
+ use Prophecy \Argument ;
14
15
use Symfony \Cmf \Bundle \ResourceBundle \DependencyInjection \CmfResourceExtension ;
15
- use Symfony \Component \DependencyInjection \ContainerBuilder ;
16
16
use Symfony \Cmf \Bundle \ResourceBundle \DependencyInjection \Repository \Factory \RepositoryFactoryInterface ;
17
+ use Symfony \Cmf \Component \Resource \Puli \Api \ResourceRepository ;
17
18
use Symfony \Component \DependencyInjection \Definition ;
18
- use Prophecy \Argument ;
19
- use Symfony \Component \OptionsResolver \OptionsResolver ;
19
+ use Symfony \Component \DependencyInjection \ContainerBuilder ;
20
20
use Symfony \Component \DependencyInjection \Exception \InvalidArgumentException ;
21
+ use Symfony \Component \OptionsResolver \OptionsResolver ;
21
22
use Symfony \Component \OptionsResolver \Exception \MissingOptionsException ;
22
- use Puli \Repository \Api \ResourceRepository ;
23
23
24
24
class CmfResourceExtensionTest extends \PHPUnit_Framework_TestCase
25
25
{
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ abstract class FactoryTestCase extends \PHPUnit_Framework_TestCase
18
18
{
19
19
protected $ resolver ;
20
20
21
- public function setUp ()
21
+ protected function setUp ()
22
22
{
23
23
$ this ->resolver = new OptionsResolver ();
24
24
}
Original file line number Diff line number Diff line change 16
16
17
17
class FilesystemFactoryTest extends FactoryTestCase
18
18
{
19
+ protected function setUp ()
20
+ {
21
+ $ this ->markTestSkipped ('Puli Filesystem is not available. ' );
22
+ }
23
+
19
24
/**
20
25
* It should add a repository to the container.
21
26
* It should configure the base dir.
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Cmf \Bundle \ResourceBundle \Tests \Unit \Registry ;
13
13
14
- use Puli \ Repository \Api \ResourceRepository ;
14
+ use Symfony \ Cmf \ Component \ Resource \ Puli \Api \ResourceRepository ;
15
15
use Symfony \Cmf \Bundle \ResourceBundle \Registry \RepositoryRegistry ;
16
16
use Symfony \Component \DependencyInjection \ContainerBuilder ;
17
17
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Cmf \Bundle \ResourceBundle \Twig ;
13
13
14
- use Puli \ Repository \ Api \Resource \PuliResource ;
14
+ use Symfony \ Cmf \ Component \Resource \ Puli \ Api \PuliResource ;
15
15
use Symfony \Cmf \Component \Resource \Description \DescriptionFactory ;
16
16
17
17
/**
Original file line number Diff line number Diff line change 9
9
"homepage" : " https://github.com/symfony-cmf/symfony-cmf/contributors"
10
10
}
11
11
],
12
- "minimum-stability" : " dev" ,
13
12
"require" : {
14
13
"php" : " ^5.5.9|^7.0" ,
15
14
"symfony/framework-bundle" : " ^2.7|3.*" ,
16
15
"symfony/options-resolver" : " ^2.7|3.*" ,
17
- "symfony-cmf/resource" : " ^1.0" ,
18
- "puli/repository" : " @beta"
16
+ "symfony-cmf/resource" : " dev-include-puli as 1.0.0"
19
17
},
20
18
"require-dev" : {
21
19
"symfony-cmf/testing" : " ^1.3|^2.0" ,
22
20
"doctrine/phpcr-odm" : " ^1.2|^2.0"
23
21
},
22
+ "minimum-stability" : " dev" ,
23
+ "prefer-stable" : true ,
24
24
"suggest" : {
25
25
"doctrine/phpcr-odm" : " To enable support for the PHPCR ODM documents (^1.2)" ,
26
26
"doctrine/phpcr-bundle" : " To enable support for the PHPCR ODM documents"
You can’t perform that action at this time.
0 commit comments