Skip to content

DevKit updates #434

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 68 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
2c31c87
DevKit updates
ElectricMaxxx Jan 29, 2019
9dca91d
DevKit updates
ElectricMaxxx Jan 29, 2019
0d8c215
DevKit updates
ElectricMaxxx Jan 29, 2019
af1b1ac
DevKit updates
ElectricMaxxx Jan 29, 2019
566d6c0
DevKit updates
ElectricMaxxx Jan 29, 2019
1d44602
DevKit updates
ElectricMaxxx Jan 30, 2019
c3d587a
DevKit updates
ElectricMaxxx Jan 30, 2019
e003c37
DevKit updates
ElectricMaxxx Jan 30, 2019
7ed160e
repair composer.json
ElectricMaxxx Jan 30, 2019
2e8ab9f
DevKit updates
ElectricMaxxx Jan 30, 2019
1009440
DevKit updates
ElectricMaxxx Jan 30, 2019
0a69604
DevKit updates
ElectricMaxxx Jan 30, 2019
1af73a1
DevKit updates
ElectricMaxxx Jan 30, 2019
7957521
DevKit updates
ElectricMaxxx Jan 30, 2019
7d0d24a
DevKit updates
ElectricMaxxx Jan 30, 2019
bb4bd87
lower versions
ElectricMaxxx Jan 30, 2019
2a38519
fix after merge
ElectricMaxxx Jan 30, 2019
721a46d
back to other version
ElectricMaxxx Jan 30, 2019
1574b05
DevKit updates
ElectricMaxxx Jan 30, 2019
41318e3
add root node
ElectricMaxxx Jan 31, 2019
85f3d81
DevKit updates
ElectricMaxxx Feb 4, 2019
535d218
root node defintion for SF < 4.2 also
ElectricMaxxx Feb 4, 2019
a01b7c1
DevKit updates
ElectricMaxxx Feb 4, 2019
979e442
DevKit updates
ElectricMaxxx Feb 8, 2019
9fa3b5f
DevKit updates
ElectricMaxxx Feb 8, 2019
f7147a9
DevKit updates
ElectricMaxxx Feb 8, 2019
506f873
DevKit updates
ElectricMaxxx Feb 8, 2019
27f174d
DevKit updates
ElectricMaxxx Feb 8, 2019
960e7c1
DevKit updates
ElectricMaxxx Feb 8, 2019
f4bcd29
DevKit updates
ElectricMaxxx Feb 8, 2019
d23ae5b
DevKit updates
ElectricMaxxx Feb 8, 2019
4b7b59e
DevKit updates
ElectricMaxxx Feb 8, 2019
3dd4174
DevKit updates
ElectricMaxxx Feb 8, 2019
99dbcb0
DevKit updates
ElectricMaxxx Feb 8, 2019
4da8d7c
DevKit updates
ElectricMaxxx Feb 8, 2019
92ac823
DevKit updates
ElectricMaxxx Feb 8, 2019
e2ca86e
DevKit updates
ElectricMaxxx Feb 8, 2019
2dd9501
DevKit updates
ElectricMaxxx Feb 8, 2019
126b503
DevKit updates
ElectricMaxxx Feb 8, 2019
f2b5c40
DevKit updates
ElectricMaxxx Feb 8, 2019
7e24c17
DevKit updates
ElectricMaxxx Feb 8, 2019
6d5a19a
DevKit updates
ElectricMaxxx Feb 8, 2019
923bf0d
DevKit updates
ElectricMaxxx Feb 8, 2019
9763716
DevKit updates
ElectricMaxxx Feb 8, 2019
556c273
little bit higher php-odm version
ElectricMaxxx Feb 4, 2019
e04d7bc
cs fixes
ElectricMaxxx Feb 9, 2019
0c86e7b
Apply fixes from StyleCI (#435)
ElectricMaxxx Feb 9, 2019
de293ec
put some folders into phpunit configuration.
ElectricMaxxx Feb 10, 2019
7f60638
equal instead of same
ElectricMaxxx Feb 10, 2019
bb2d2ca
Remove .php-dest from git
ElectricMaxxx Feb 10, 2019
40fa2ac
use more common vesions
ElectricMaxxx Feb 10, 2019
f961ab5
fix version string
ElectricMaxxx Feb 10, 2019
0aa620f
check on null before
ElectricMaxxx Feb 10, 2019
d8b9f84
DevKit updates
ElectricMaxxx Feb 11, 2019
db203e7
string type constraint instead of null check
ElectricMaxxx Feb 11, 2019
fe9b49b
add changelog entry
ElectricMaxxx Feb 26, 2019
182307b
add dates to changelog
ElectricMaxxx Feb 26, 2019
d9a61f9
also add a null check
ElectricMaxxx Feb 26, 2019
8903b81
should fix test for routing
ElectricMaxxx Feb 26, 2019
9c0b5a3
Some style changes
ElectricMaxxx Feb 26, 2019
ded81f8
cs fixes
ElectricMaxxx Feb 27, 2019
95e8033
revert stupid string replace
ElectricMaxxx Feb 27, 2019
e852981
revert strpos -> substr change
ElectricMaxxx Feb 27, 2019
8a471da
also cs fix change on master through an rebase
ElectricMaxxx Feb 28, 2019
a538d03
adjust some tests comming from master
ElectricMaxxx Feb 28, 2019
1cde57e
fix changelog entry
ElectricMaxxx Feb 28, 2019
836ae68
DevKit updates
ElectricMaxxx Mar 1, 2019
759c9c6
use higher symfony dependency/config testing versions
ElectricMaxxx Mar 1, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@ phpunit.xml
composer.lock
vendor
tests/Fixtures/App/var/
.phpunit/
build/
.roles/
/.php_cs
.php_cs.cache
64 changes: 64 additions & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?php

/**
* DO NOT EDIT THIS FILE!
*
* It's auto-generated by sonata-project/dev-kit package.
*/

$header = <<<'HEADER'
This file is part of the Symfony CMF package.

(c) Symfony CMF

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
HEADER;

$rules = [
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => [
'syntax' => 'short',
],
'combine_consecutive_issets' => true,
'combine_consecutive_unsets' => true,
'header_comment' => [
'header' => $header,
],
'no_extra_blank_lines' => true,
'no_php4_constructor' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_class_elements' => true,
'ordered_imports' => true,
'phpdoc_order' => true,
'@PHP56Migration' => true,
'@PHP56Migration:risky' => true,
'@PHPUnit57Migration:risky' => true,
'@PHP70Migration' => true,
'@PHP70Migration:risky' => true,
'@PHPUnit60Migration:risky' => true,
'@PHP71Migration' => true,
'@PHP71Migration:risky' => true,
'compact_nullable_typehint' => true,
'void_return' => null,
'strict_comparison' => true,
'strict_param' => true,
];


$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude('Tests/Fixtures')
->exclude('tests/Fixtures')
->exclude('Resources/skeleton')
->exclude('Resources/public/vendor')
;

return PhpCsFixer\Config::create()
->setFinder($finder)
->setRiskyAllowed(true)
->setRules($rules)
->setUsingCache(true)
;
2 changes: 1 addition & 1 deletion .styleci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
############################################################################
# This file is part of the Symfony CMF package. #
# #
# (c) 2011-2017 Symfony CMF #
# (c) Symfony CMF #
# #
# For the full copyright and license information, please view the LICENSE #
# file that was distributed with this source code. #
Expand Down
42 changes: 28 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
############################################################################
# This file is part of the Symfony CMF package. #
# #
# (c) 2011-2017 Symfony CMF #
# (c) Symfony CMF #
# #
# For the full copyright and license information, please view the LICENSE #
# file that was distributed with this source code. #
Expand All @@ -17,7 +17,8 @@ language: php

php:
- 7.1

- 7.2
- 7.3
sudo: false

cache:
Expand All @@ -26,25 +27,32 @@ cache:
- $HOME/.composer/cache/files

env:
matrix: SYMFONY_VERSION=4.0.*
matrix: SYMFONY_VERSION=4.2.*
global:
- SYMFONY_DEPRECATIONS_HELPER="/.*each.*/"
- SYMFONY_PHPUNIT_DIR=.phpunit SYMFONY_PHPUNIT_REMOVE="symfony/yaml"
- SYMFONY_PHPUNIT_VERSION=6
- TEST_INSTALLATION=false
- SYMFONY_PHPUNIT_VERSION=7
- PHPUNIT_VERSION=7
- TARGET=test

matrix:
include:
- php: 7.2
env: SYMFONY_VERSION=4.0.*
- env: TARGET=lint
- php: 7.3
env: STABILITY="dev" SYMFONY_VERSION=4.3.*
- php: 7.3
env: SYMFONY_VERSION=4.2.*
- php: 7.1
env: COMPOSER_FLAGS="--prefer-lowest" SYMFONY_VERSION=2.8.* SYMFONY_DEPRECATIONS_HELPER=weak
- php: 7.2
env: SYMFONY_VERSION=3.3.*
env: COMPOSER_FLAGS="--prefer-lowest" SYMFONY_VERSION=3.4.* SYMFONY_DEPRECATIONS_HELPER="/.*each.*/"

- php: 7.2
env: SYMFONY_VERSION=3.4.*
env: SYMFONY_VERSION=4.1.*
- env: TARGET=test_installation
fast_finish: true
allow_failures:
- php: 7.3
env: STABILITY="dev" SYMFONY_VERSION=4.3.*
- env: TARGET=test_installation

before_install:
- phpenv config-rm xdebug.ini || true
Expand All @@ -54,9 +62,15 @@ before_install:
- if [ "$SYMFONY_VERSION" != "" ]; then composer require symfony/symfony:${SYMFONY_VERSION} --no-update; fi
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)

install: travis_wait composer update --prefer-dist $COMPOSER_FLAGS
script:
- if [ "${TEST_INSTALLATION}" == true ]; then make test_installation; else make test; fi
install:
- phpenv config-add travis.php.ini
- php -ini | grep memory_limit
- if [ -x .travis/install_${TARGET}.sh ]; then .travis/install_${TARGET}.sh; fi;

script: make $TARGET

after_success:
- if [ -x .travis/after_success_${TARGET}.sh ]; then .travis/after_success_${TARGET}.sh; fi;

notifications:
irc: "irc.freenode.org#symfony-cmf"
5 changes: 5 additions & 0 deletions .travis/after_success_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

#!/usr/bin/env sh
set -ev

coveralls -v
11 changes: 11 additions & 0 deletions .travis/install_lint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env sh
set -ev

mkdir --parents "${HOME}/bin"

wget "http://cs.sensiolabs.org/download/php-cs-fixer-v2.phar" --output-document="${HOME}/bin/php-cs-fixer"
chmod u+x "${HOME}/bin/php-cs-fixer"

composer global require sllh/composer-lint:@stable --prefer-dist --no-interaction

gem install yaml-lint
19 changes: 19 additions & 0 deletions .travis/install_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env sh
set -ev

mkdir --parents "${HOME}/bin"

wget "https://phar.phpunit.de/phpunit-${PHPUNIT_VERSION}.phar" --output-document="${HOME}/bin/phpunit"
chmod u+x "${HOME}/bin/phpunit"

# Coveralls client install
wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar --output-document="${HOME}/bin/coveralls"
chmod u+x "${HOME}/bin/coveralls"

# To be removed when these issues are resolved:
# https://github.com/composer/composer/issues/5355
if [ "${COMPOSER_FLAGS}" = '--prefer-lowest' ]; then
composer update --prefer-dist --no-interaction --prefer-stable --quiet
fi

composer update --prefer-dist --no-interaction --prefer-stable ${COMPOSER_FLAGS}
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Changelog
2.2.0(ureleased)
---------------

* **YYYY-MM-DD**:
* **2019-02-28**: Symfony 4.2 support without warnings

2.1.1
-----
Expand Down
70 changes: 63 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
############################################################################
# This file is part of the Symfony CMF package. #
# #
# (c) 2011-2017 Symfony CMF #
# (c) Symfony CMF #
# #
# For the full copyright and license information, please view the LICENSE #
# file that was distributed with this source code. #
Expand All @@ -20,16 +20,72 @@ ifdef BRANCH
VERSION=dev-${BRANCH}
endif
PACKAGE=symfony-cmf/routing-bundle
export KERNEL_CLASS=Symfony\Cmf\Bundle\RoutingBundle\Tests\Fixtures\App\Kernel
HAS_XDEBUG=$(shell php --modules|grep --quiet xdebug;echo $$?)

list:
@echo 'test: will run all tests'
@echo 'unit_tests: will run unit tests only'
@echo 'functional_tests_phpcr: will run functional tests with PHPCR'
@echo 'functional_tests_orm: will run functional tests with ORM'

include ${TESTING_SCRIPTS_DIR}/make/unit_tests.mk
include ${TESTING_SCRIPTS_DIR}/make/functional_tests_phpcr.mk
include ${TESTING_SCRIPTS_DIR}/make/functional_tests_orm.mk
@echo 'test_installation: will run installation test'TEST_DEPENDENCIES := ""
EXTRA_INCLUDES:=$(wildcard ${TESTING_SCRIPTS_DIR}/make/unit_tests.mk)
ifneq ($(strip $(EXTRA_INCLUDES)),)
contents := $(shell echo including extra rules $(EXTRA_INCLUDES))
include $(EXTRA_INCLUDES)
TEST_DEPENDENCIES := $(TEST_DEPENDENCIES)" unit_tests"
endif
EXTRA_INCLUDES:=$(wildcard ${TESTING_SCRIPTS_DIR}/make/functional_tests_phpcr.mk)
ifneq ($(strip $(EXTRA_INCLUDES)),)
contents := $(shell echo including extra rules $(EXTRA_INCLUDES))
include $(EXTRA_INCLUDES)
TEST_DEPENDENCIES := $(TEST_DEPENDENCIES)" functional_tests_phpcr"
endif
EXTRA_INCLUDES:=$(wildcard ${TESTING_SCRIPTS_DIR}/make/functional_tests_orm.mk)
ifneq ($(strip $(EXTRA_INCLUDES)),)
contents := $(shell echo including extra rules $(EXTRA_INCLUDES))
include $(EXTRA_INCLUDES)
TEST_DEPENDENCIES := $(TEST_DEPENDENCIES)" functional_tests_orm"
endif
EXTRA_INCLUDES:=$(wildcard ${TESTING_SCRIPTS_DIR}/make/test_installation.mk)
ifneq ($(strip $(EXTRA_INCLUDES)),)
contents := $(shell echo including extra rules $(EXTRA_INCLUDES))
include $(EXTRA_INCLUDES)
endif

.PHONY: test
test: unit_tests functional_tests_phpcr functional_tests_orm
test: build/xdebug-filter.php$
ifneq ($(strip $(wildcard ${TESTING_SCRIPTS_DIR}/make/unit_tests.mk)),)
@make unit_tests
endif
ifneq ($(strip $(wildcard ${TESTING_SCRIPTS_DIR}/make/functional_tests_phpcr.mk)),)
@make functional_tests_phpcr
endif
ifneq ($(strip $(wildcard ${TESTING_SCRIPTS_DIR}/make/functional_tests_orm.mk)),)
@make functional_tests_orm
endif

lint-php:
php-cs-fixer fix --ansi --verbose --diff --dry-run
.PHONY: lint-php

lint: lint-composer lint-php
.PHONY: lint

lint-composer:
composer validate
.PHONY: lint-composer

cs-fix: cs-fix-php
.PHONY: cs-fix

cs-fix-php:
php-cs-fixer fix --verbose
.PHONY: cs-fix-php

build:
mkdir $@

build/xdebug-filter.php: phpunit.xml.dist build
ifeq ($(HAS_XDEBUG), 0)
phpunit --dump-xdebug-filter $@
endif
44 changes: 25 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@
[![Monthly Downloads](https://poser.pugx.org/symfony-cmf/routing-bundle/d/monthly)](https://packagist.org/packages/symfony-cmf/routing-bundle)
[![Daily Downloads](https://poser.pugx.org/symfony-cmf/routing-bundle/d/daily)](https://packagist.org/packages/symfony-cmf/routing-bundle)

Version/Branch | Travis | Coveralls |
------ | ------ | --------- |
2.1.1 | [![Build Status][travis_stable_badge]][travis_link] | [![Coverage Status][coveralls_stable_badge]][coveralls_stable_link] |
master | [![Build Status][travis_unstable_badge]][travis_link] | [![Coverage Status][coveralls_unstable_badge]][coveralls_unstable_link] |
Branch | Travis | Coveralls | Scrutinizer |
------ | ------ | --------- | ----------- |
2.1 | [![Build Status][travis_stable_badge]][travis_stable_link] | [![Coverage Status][coveralls_stable_badge]][coveralls_stable_link] | [![Scrutinizer Status][scrutinizer_stable_badge]][scrutinizer_stable_link] |
dev-master | [![Build Status][travis_unstable_badge]][travis_unstable_link] | [![Coverage Status][coveralls_unstable_badge]][coveralls_unstable_link] | [![Scrutinizer Status][scrutinizer_unstable_badge]][scrutinizer_unstable_link] |

This package is part of the [Symfony Content Management Framework (CMF)](http://cmf.symfony.com/) and licensed

This package is part of the [Symfony Content Management Framework (CMF)](https://cmf.symfony.com/) and licensed
under the [MIT License](LICENSE).

The RoutingBundle enables the
Expand All @@ -24,24 +25,24 @@ controller for redirection routes.

## Requirements

* PHP 7.1 / 7.2
* Symfony 2.8 / 3.3 / 3.4 / 4.0
* PHP 7.1 / 7.2 / 7.3
* Symfony 3.4 / 4.1 / 4.2
* See also the `require` section of [composer.json](composer.json)

## Documentation

For the install guide and reference, see:

* [symfony-cmf/routing-bundle Documentation](http://symfony.com/doc/master/cmf/bundles/routing/index.html)
* [symfony-cmf/routing-bundle Documentation](https://symfony.com/doc/master/cmf/bundles/routing/index.html)

See also:

* [All Symfony CMF documentation](http://symfony.com/doc/master/cmf/index.html) - complete Symfony CMF reference
* [Symfony CMF Website](http://cmf.symfony.com/) - introduction, live demo, support and community links
* [All Symfony CMF documentation](https://symfony.com/doc/master/cmf/index.html) - complete Symfony CMF reference
* [Symfony CMF Website](https://cmf.symfony.com/) - introduction, live demo, support and community links

## Support

For general support and questions, please use [StackOverflow](http://stackoverflow.com/questions/tagged/symfony-cmf).
For general support and questions, please use [StackOverflow](https://stackoverflow.com/questions/tagged/symfony-cmf).

## Contributing

Expand All @@ -50,7 +51,7 @@ Pull requests are welcome. Please see our
guide.

Unit and/or functional tests exist for this package. See the
[Testing documentation](http://symfony.com/doc/master/cmf/components/testing.html)
[Testing documentation](https://symfony.com/doc/master/cmf/components/testing.html)
for a guide to running the tests.

Thanks to
Expand All @@ -60,12 +61,17 @@ Thanks to

This package is available under the [MIT license](src/Resources/meta/LICENSE).

[travis_stable_badge]: https://travis-ci.org/symfony-cmf/routing-bundle.svg?branch=2.x
[travis_unstable_badge]: https://travis-ci.org/symfony-cmf/routing-bundle.svg?branch=master
[travis_stable_badge]: https://travis-ci.org/symfony-cmf/routing-bundle.svg?branch=2.1
[travis_stable_link]: https://travis-ci.org/symfony-cmf/routing-bundle
[travis_unstable_badge]: https://travis-ci.org/symfony-cmf/routing-bundle.svg?branch=dev-master
[travis_unstable_link]: https://travis-ci.org/symfony-cmf/routing-bundle

[travis_link]: https://travis-ci.org/symfony-cmf/routing-bundle
[coveralls_stable_badge]: https://coveralls.io/repos/github/symfony-cmf/routing-bundle/badge.svg?branch=2.1
[coveralls_stable_link]: https://coveralls.io/github/symfony-cmf/routing-bundle?branch=2.1
[coveralls_unstable_badge]: https://coveralls.io/repos/github/symfony-cmf/routing-bundle/badge.svg?branch=dev-master
[coveralls_unstable_link]: https://coveralls.io/github/symfony-cmf/routing-bundle?branch=dev-master

[coveralls_stable_badge]: https://coveralls.io/repos/github/symfony-cmf/routing-bundle/badge.svg?branch=2.x
[coveralls_stable_link]: https://coveralls.io/github/symfony-cmf/routing-bundle?branch=2.x
[coveralls_unstable_badge]: https://coveralls.io/repos/github/symfony-cmf/routing-bundle/badge.svg?branch=master
[coveralls_unstable_link]: https://coveralls.io/github/symfony-cmf/routing-bundle?branch=master
[scrutinizer_stable_badge]: https://scrutinizer-ci.com/g/symfony-cmf/routing-bundle/badges/quality-score.png?b=2.1
[scrutinizer_stable_link]: https://scrutinizer-ci.com/g/symfony-cmf/routing-bundle/?branch=2.1
[scrutinizer_unstable_badge]: https://scrutinizer-ci.com/g/symfony-cmf/routing-bundle/badges/quality-score.png?b=dev-master
[scrutinizer_unstable_link]: https://scrutinizer-ci.com/g/symfony-cmf/routing-bundle/?branch=dev-master
Loading