Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit ee1bb5f

Browse files
Master dev kit (#48)
* support symfony 3.4, new testing app folder structure * Apply fixes from StyleCI (#49) [ci skip] [skip ci]
1 parent d670117 commit ee1bb5f

File tree

15 files changed

+29
-29
lines changed

15 files changed

+29
-29
lines changed

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
Tests/Resources/app/cache
2-
Tests/Resources/app/logs
3-
Tests/Resources/data
1+
tests/Fixtures/App/var/
2+
!tests/Fixtures/App/var/.gitempty
43
composer.lock
54
vendor

.travis.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,31 +26,30 @@ cache:
2626
- $HOME/.composer/cache/files
2727

2828
env:
29-
matrix: SYMFONY_VERSION=3.4
29+
matrix: SYMFONY_VERSION=^3.4@dev
3030
global:
31-
- SYMFONY_DEPRECATIONS_HELPER=48
31+
- SYMFONY_DEPRECATIONS_HELPER=0
3232
- SYMFONY_PHPUNIT_DIR=.phpunit SYMFONY_PHPUNIT_REMOVE="symfony/yaml"
33+
- KERNEL_CLASS=Symfony\Cmf\Bundle\ResourceBundle\Tests\Fixtures\App\Kernel
3334
- SYMFONY_PHPUNIT_VERSION=5.7
3435
- TEST_INSTALLATION=false
3536

3637
matrix:
3738
include:
3839
- php: 7.1
39-
env: SYMFONY_VERSION=3.4.*
40+
env: DEPS=dev SYMFONY_VERSION=^4@dev
4041
- php: 7.1
41-
env: DEPS=dev SYMFONY_VERSION=3.3.*
42-
- php: 7.0
43-
env: COMPOSER_FLAGS="--prefer-lowest" SYMFONY_VERSION=2.8.* SYMFONY_DEPRECATIONS_HELPER=weak
42+
env: DEPS=dev SYMFONY_VERSION=^3.4@dev
4443
- php: 7.1
45-
env: SYMFONY_VERSION=3.1.*
44+
env: COMPOSER_FLAGS="--prefer-lowest" SYMFONY_VERSION=2.8.* SYMFONY_DEPRECATIONS_HELPER=weak
4645
- php: 7.1
47-
env: SYMFONY_VERSION=3.2.*
46+
env: SYMFONY_VERSION=3.3.*
4847
- env: TEST_INSTALLATION=true
4948

5049
fast_finish: true
5150
allow_failures:
5251
- php: 7.1
53-
env: SYMFONY_VERSION=3.4.*
52+
env: DEPS=dev SYMFONY_VERSION=^4@dev
5453
- env: TEST_INSTALLATION=true
5554

5655

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Changelog
22
=========
33

4-
4+
* **2017-11-16**: Removed php 5.6 and 7.0 support, removed Symfony 3.0.* and 3.1.* support
55
* **2017-10-24**: Dropped hhvm support
66

77
1.0.0

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ifdef BRANCH
2020
VERSION=dev-${BRANCH}
2121
endif
2222
PACKAGE=symfony-cmf/resource-bundle
23-
23+
export KERNEL_CLASS=Symfony\Cmf\Bundle\ResourceBundle\Tests\Fixtures\App\Kernel
2424
list:
2525
@echo 'test: will run all tests'
2626
@echo 'unit_tests: will run unit tests only'

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ provide the context with which to resolve the documents.
3636

3737
## Requirements
3838

39-
* PHP 7.0 / 7.1
40-
* Symfony 2.8 / 3.1 / 3.2 / 3.3
39+
* PHP 7.1
40+
* Symfony 2.8 / 3.3 / ^3.4@dev
4141
* See also the `require` section of [composer.json](composer.json)
4242

4343
## Documentation

composer.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,17 @@
1111
],
1212
"require": {
1313
"php": "^5.6|^7.0",
14-
"symfony/framework-bundle": "^2.8|^3.0",
15-
"symfony/options-resolver": "^2.8|^3.0",
16-
"symfony-cmf/resource": "^1.0"
14+
"symfony/framework-bundle": "^2.8|^3.3",
15+
"symfony/options-resolver": "^2.8|^3.3",
16+
"symfony-cmf/resource": "^1.0",
17+
"symfony/symfony": "^3.4@dev"
1718
},
1819
"require-dev": {
1920
"symfony-cmf/testing": "^2.1@dev",
2021
"symfony/phpunit-bridge": "^3.2",
21-
"doctrine/phpcr-odm": "^1.3"
22+
"doctrine/phpcr-odm": "^1.4|^2.0"
2223
},
23-
"minimum-stability": "stable",
24+
"minimum-stability":"dev",
2425
"prefer-stable": true,
2526
"suggest": {
2627
"doctrine/phpcr-odm": "To enable support for the PHPCR ODM documents (^1.3)",
@@ -30,7 +31,10 @@
3031
"psr-4": { "Symfony\\Cmf\\Bundle\\ResourceBundle\\": "src/" }
3132
},
3233
"autoload-dev": {
33-
"psr-4": { "Symfony\\Cmf\\Bundle\\ResourceBundle\\Tests\\": "tests/" }
34+
"psr-4": {
35+
"Symfony\\Cmf\\Bundle\\ResourceBundle\\Tests\\": "tests/",
36+
"Symfony\\Cmf\\Bundle\\ResourceBundle\\Tests\\App\\": "tests/Resources/app"
37+
}
3438
},
3539
"extra": {
3640
"branch-alias": {

phpunit.xml.dist

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,4 @@
2424
</exclude>
2525
</whitelist>
2626
</filter>
27-
28-
<php>
29-
<server name="KERNEL_DIR" value="tests/Resources/app" />
30-
</php>
31-
3227
</phpunit>

src/DependencyInjection/CmfResourceExtension.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ private function loadRepositories(ContainerBuilder $container, array $configs, $
8484

8585
$serviceId = self::getRepositoryServiceId($repositoryName);
8686
$definition = $factory->create($config);
87+
$definition->setPublic(true);
8788
$typeMap[$definition->getClass()] = $type;
8889
$serviceMap[$repositoryName] = $serviceId;
8990

src/Resources/config/resource.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<service id="cmf_resource.finder.selector.parser" class="Symfony\Cmf\Component\Resource\Finder\SelectorParser" public="false" />
99

10-
<service id="cmf_resource.registry" class="Symfony\Cmf\Bundle\ResourceBundle\Registry\RepositoryRegistry">
10+
<service id="cmf_resource.registry" class="Symfony\Cmf\Bundle\ResourceBundle\Registry\RepositoryRegistry" public="true">
1111
<argument type="service" id="service_container"/>
1212
<argument /> <!-- service map -->
1313
<argument /> <!-- type map -->

tests/Resources/app/AppKernel.php renamed to tests/Fixtures/App/Kernel.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@
99
* file that was distributed with this source code.
1010
*/
1111

12+
namespace Symfony\Cmf\Bundle\ResourceBundle\Tests\Fixtures\App;
13+
1214
use Symfony\Cmf\Component\Testing\HttpKernel\TestKernel;
1315
use Symfony\Component\Config\Loader\LoaderInterface;
1416

15-
class AppKernel extends TestKernel
17+
class Kernel extends TestKernel
1618
{
1719
public function configure()
1820
{

0 commit comments

Comments
 (0)