From e23edfd287bb21f8bf75f28f90a2b546b3bd3929 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Sun, 6 Dec 2015 14:39:01 +0100 Subject: [PATCH 01/20] Update deps Changelogs summary: - doctrine/cache updated from v1.5.1 to v1.5.2 See changes: https://github.com/doctrine/cache/compare/v1.5.1...v1.5.2 Release notes: https://github.com/doctrine/cache/releases/tag/v1.5.2 - doctrine/common updated from v2.5.1 to v2.5.2 See changes: https://github.com/doctrine/common/compare/v2.5.1...v2.5.2 Release notes: https://github.com/doctrine/common/releases/tag/v2.5.2 - symfony/polyfill-mbstring installed in version v1.0.0 Release notes: https://github.com/symfony/polyfill-mbstring/releases/tag/v1.0.0 - symfony/polyfill-util installed in version v1.0.0 Release notes: https://github.com/symfony/polyfill-util/releases/tag/v1.0.0 - paragonie/random_compat installed in version 1.1.1 Release notes: https://github.com/paragonie/random_compat/releases/tag/1.1.1 - symfony/polyfill-php70 installed in version v1.0.0 Release notes: https://github.com/symfony/polyfill-php70/releases/tag/v1.0.0 - symfony/polyfill-php56 installed in version v1.0.0 Release notes: https://github.com/symfony/polyfill-php56/releases/tag/v1.0.0 - ircmaxell/password-compat installed in version v1.0.4 Release notes: https://github.com/ircmaxell/password_compat/releases/tag/v1.0.4 - symfony/polyfill-php55 installed in version v1.0.0 Release notes: https://github.com/symfony/polyfill-php55/releases/tag/v1.0.0 - symfony/polyfill-php54 installed in version v1.0.0 Release notes: https://github.com/symfony/polyfill-php54/releases/tag/v1.0.0 - symfony/polyfill-intl-icu installed in version v1.0.0 Release notes: https://github.com/symfony/polyfill-intl-icu/releases/tag/v1.0.0 - symfony/symfony updated from v2.7.7 to v2.8.0 See changes: https://github.com/symfony/symfony/compare/v2.7.7...v2.8.0 Release notes: https://github.com/symfony/symfony/releases/tag/v2.8.0 - symfony/security-acl installed in version v2.7.7 Release notes: https://github.com/symfony/security-acl/releases/tag/v2.7.7 - doctrine/orm updated from v2.5.1 to v2.5.2 See changes: https://github.com/doctrine/doctrine2/compare/v2.5.1...v2.5.2 Release notes: https://github.com/doctrine/doctrine2/releases/tag/v2.5.2 - kriswallsmith/assetic updated from v1.3.1 to v1.3.2 See changes: https://github.com/kriswallsmith/assetic/compare/v1.3.1...v1.3.2 Release notes: https://github.com/kriswallsmith/assetic/releases/tag/v1.3.2 - symfony/assetic-bundle updated from v2.7.0 to v2.7.1 See changes: https://github.com/symfony/assetic-bundle/compare/v2.7.0...v2.7.1 Release notes: https://github.com/symfony/assetic-bundle/releases/tag/v2.7.1 - symfony/swiftmailer-bundle updated from v2.3.8 to v2.3.9 See changes: https://github.com/symfony/swiftmailer-bundle/compare/v2.3.8...v2.3.9 Release notes: https://github.com/symfony/swiftmailer-bundle/releases/tag/v2.3.9 - symfony/monolog-bundle updated from 2.8.1 to v2.8.2 See changes: https://github.com/symfony/monolog-bundle/compare/2.8.1...v2.8.2 Release notes: https://github.com/symfony/monolog-bundle/releases/tag/v2.8.2 - sensio/distribution-bundle updated from v3.0.33 to v3.0.34 See changes: https://github.com/sensiolabs/SensioDistributionBundle/compare/v3.0.33...v3.0.34 Release notes: https://github.com/sensiolabs/SensioDistributionBundle/releases/tag/v3.0.34 - friendsofsymfony/rest-bundle updated from 1.7.2 to 1.7.4 See changes: https://github.com/FriendsOfSymfony/FOSRestBundle/compare/1.7.2...1.7.4 Release notes: https://github.com/FriendsOfSymfony/FOSRestBundle/releases/tag/1.7.4 - nelmio/api-doc-bundle updated from 2.10.3 to 2.11.0 See changes: https://github.com/nelmio/NelmioApiDocBundle/compare/2.10.3...2.11.0 Release notes: https://github.com/nelmio/NelmioApiDocBundle/releases/tag/2.11.0 - j0k3r/graby-site-config updated from 1.0.6 to 1.0.9 See changes: https://github.com/j0k3r/graby-site-config/compare/1.0.6...1.0.9 Release notes: https://github.com/j0k3r/graby-site-config/releases/tag/1.0.9 - j0k3r/safecurl updated from v1.1.1 to 2.0.2 See changes: https://github.com/j0k3r/safecurl/compare/v1.1.1...2.0.2 Release notes: https://github.com/j0k3r/safecurl/releases/tag/2.0.2 - j0k3r/graby updated from 1.0.4 to 1.0.6 See changes: https://github.com/j0k3r/graby/compare/1.0.4...1.0.6 Release notes: https://github.com/j0k3r/graby/releases/tag/1.0.6 - scheb/two-factor-bundle updated from v1.4.7 to v1.5.0 See changes: https://github.com/scheb/two-factor-bundle/compare/v1.4.7...v1.5.0 Release notes: https://github.com/scheb/two-factor-bundle/releases/tag/v1.5.0 - sebastian/recursion-context updated from 1.0.1 to 1.0.2 See changes: https://github.com/sebastianbergmann/recursion-context/compare/1.0.1...1.0.2 Release notes: https://github.com/sebastianbergmann/recursion-context/releases/tag/1.0.2 - sebastian/environment updated from 1.3.2 to 1.3.3 See changes: https://github.com/sebastianbergmann/environment/compare/1.3.2...1.3.3 Release notes: https://github.com/sebastianbergmann/environment/releases/tag/1.3.3 - sebastian/diff updated from 1.3.0 to 1.4.0 See changes: https://github.com/sebastianbergmann/diff/compare/1.3.0...1.4.0 Release notes: https://github.com/sebastianbergmann/diff/releases/tag/1.4.0 - phpunit/phpunit updated from 4.8.18 to 4.8.19 See changes: https://github.com/sebastianbergmann/phpunit/compare/4.8.18...4.8.19 Release notes: https://github.com/sebastianbergmann/phpunit/releases/tag/4.8.19 - symfony/phpunit-bridge updated from v2.7.7 to v2.8.0 See changes: https://github.com/symfony/phpunit-bridge/compare/v2.7.7...v2.8.0 Release notes: https://github.com/symfony/phpunit-bridge/releases/tag/v2.8.0 - doctrine/doctrine-cache-bundle updated from 1.2.1 to 1.2.2 See changes: https://github.com/doctrine/DoctrineCacheBundle/compare/1.2.1...1.2.2 Release notes: https://github.com/doctrine/DoctrineCacheBundle/releases/tag/1.2.2 - doctrine/doctrine-bundle updated from v1.5.2 to 1.6.1 See changes: https://github.com/doctrine/DoctrineBundle/compare/v1.5.2...1.6.1 Release notes: https://github.com/doctrine/DoctrineBundle/releases/tag/1.6.1 - phpzip/phpzip updated from 2.0.7 to 2.0.8 See changes: https://github.com/Grandt/PHPZip/compare/2.0.7...2.0.8 Release notes: https://github.com/Grandt/PHPZip/releases/tag/2.0.8 - kphoen/rulerz updated from 0.14.0 to 0.16.1 See changes: https://github.com/K-Phoen/rulerz/compare/0.14.0...0.16.1 Release notes: https://github.com/K-Phoen/rulerz/releases/tag/0.16.1 - friendsofsymfony/user-bundle updated from dev-master to dev-master See changes: https://github.com/FriendsOfSymfony/FOSUserBundle/compare/45d6f40...e39b040 --- composer.json | 6 +- composer.lock | 700 ++++++++++++++++++++++++++++++++++++++++++++------ 2 files changed, 629 insertions(+), 77 deletions(-) diff --git a/composer.json b/composer.json index 3300c0fbb..4018cd51f 100644 --- a/composer.json +++ b/composer.json @@ -29,9 +29,9 @@ }, "require": { "php": ">=5.5.0", - "symfony/symfony": "~2.7.0", + "symfony/symfony": "~2.8", "doctrine/orm": "~2.3", - "doctrine/doctrine-bundle": "1.5.2", + "doctrine/doctrine-bundle": "~1.5", "twig/extensions": "~1.0", "symfony/assetic-bundle": "~2.3", "symfony/swiftmailer-bundle": "~2.3", @@ -67,7 +67,7 @@ "doctrine/doctrine-fixtures-bundle": "~2.2.0", "sensio/generator-bundle": "~2.5", "phpunit/phpunit": "~4.4", - "symfony/phpunit-bridge": "~2.7.0" + "symfony/phpunit-bridge": "~2.7" }, "repositories": [ { diff --git a/composer.lock b/composer.lock index f47e85743..479da672c 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,8 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "e738598a939db93e1c63d4aca980e42b", - "content-hash": "19dffb1d7e701242746aea4ca17cebc2", + "hash": "f284c10bdce34af9783936d745d230d5", + "content-hash": "4de200774d9848416365015125e0f171", "packages": [ { "name": "behat/transliterator", @@ -117,16 +117,16 @@ }, { "name": "doctrine/cache", - "version": "v1.6.0", + "version": "v1.5.2", "source": { "type": "git", "url": "https://github.com/doctrine/cache.git", - "reference": "f8af318d14bdb0eff0336795b428b547bd39ccb6" + "reference": "47c7128262da274f590ae6f86eb137a7a64e82af" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/cache/zipball/f8af318d14bdb0eff0336795b428b547bd39ccb6", - "reference": "f8af318d14bdb0eff0336795b428b547bd39ccb6", + "url": "https://api.github.com/repos/doctrine/cache/zipball/47c7128262da274f590ae6f86eb137a7a64e82af", + "reference": "47c7128262da274f590ae6f86eb137a7a64e82af", "shasum": "" }, "require": { @@ -183,7 +183,7 @@ "cache", "caching" ], - "time": "2015-12-31 16:37:02" + "time": "2015-12-03 10:50:37" }, { "name": "doctrine/collections", @@ -397,16 +397,16 @@ }, { "name": "doctrine/doctrine-bundle", - "version": "v1.5.2", + "version": "1.6.1", "source": { "type": "git", "url": "https://github.com/doctrine/DoctrineBundle.git", - "reference": "d63be7eb9a95d46720f7d6badac4e5bc2bcff2e3" + "reference": "c4ffef2b2296e9d0179eb0b5248e5ae25c9bba3b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/DoctrineBundle/zipball/d63be7eb9a95d46720f7d6badac4e5bc2bcff2e3", - "reference": "d63be7eb9a95d46720f7d6badac4e5bc2bcff2e3", + "url": "https://api.github.com/repos/doctrine/DoctrineBundle/zipball/c4ffef2b2296e9d0179eb0b5248e5ae25c9bba3b", + "reference": "c4ffef2b2296e9d0179eb0b5248e5ae25c9bba3b", "shasum": "" }, "require": { @@ -471,7 +471,7 @@ "orm", "persistence" ], - "time": "2015-08-31 14:47:06" + "time": "2015-11-16 17:11:46" }, { "name": "doctrine/doctrine-cache-bundle", @@ -1106,17 +1106,17 @@ }, { "name": "friendsofsymfony/rest-bundle", - "version": "1.7.7", + "version": "1.7.4", "target-dir": "FOS/RestBundle", "source": { "type": "git", "url": "https://github.com/FriendsOfSymfony/FOSRestBundle.git", - "reference": "c79b7e5df96e5581591ceb6a026bd4e5f9346de0" + "reference": "64ba918b1eb47acb5aa7fef1ce95623235b53775" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/zipball/c79b7e5df96e5581591ceb6a026bd4e5f9346de0", - "reference": "c79b7e5df96e5581591ceb6a026bd4e5f9346de0", + "url": "https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/zipball/64ba918b1eb47acb5aa7fef1ce95623235b53775", + "reference": "64ba918b1eb47acb5aa7fef1ce95623235b53775", "shasum": "" }, "require": { @@ -1188,7 +1188,7 @@ "keywords": [ "rest" ], - "time": "2015-12-29 16:02:50" + "time": "2015-12-05 14:55:07" }, { "name": "friendsofsymfony/user-bundle", @@ -2437,17 +2437,59 @@ "time": "2015-11-10 17:04:01" }, { - "name": "j0k3r/graby", - "version": "1.0.8", + "name": "ircmaxell/password-compat", + "version": "v1.0.4", "source": { "type": "git", - "url": "https://github.com/j0k3r/graby.git", - "reference": "bf152ccc6629bdd63b1e5e8b297c2912516b5f1e" + "url": "https://github.com/ircmaxell/password_compat.git", + "reference": "5c5cde8822a69545767f7c7f3058cb15ff84614c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/j0k3r/graby/zipball/bf152ccc6629bdd63b1e5e8b297c2912516b5f1e", - "reference": "bf152ccc6629bdd63b1e5e8b297c2912516b5f1e", + "url": "https://api.github.com/repos/ircmaxell/password_compat/zipball/5c5cde8822a69545767f7c7f3058cb15ff84614c", + "reference": "5c5cde8822a69545767f7c7f3058cb15ff84614c", + "shasum": "" + }, + "require-dev": { + "phpunit/phpunit": "4.*" + }, + "type": "library", + "autoload": { + "files": [ + "lib/password.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Anthony Ferrara", + "email": "ircmaxell@php.net", + "homepage": "http://blog.ircmaxell.com" + } + ], + "description": "A compatibility library for the proposed simplified password hashing algorithm: https://wiki.php.net/rfc/password_hash", + "homepage": "https://github.com/ircmaxell/password_compat", + "keywords": [ + "hashing", + "password" + ], + "time": "2014-11-20 16:49:30" + }, + { + "name": "j0k3r/graby", + "version": "1.0.6", + "source": { + "type": "git", + "url": "https://github.com/j0k3r/graby.git", + "reference": "c9f5543fad60dc4efd12195733f96bb4fdb0e6e0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/j0k3r/graby/zipball/c9f5543fad60dc4efd12195733f96bb4fdb0e6e0", + "reference": "c9f5543fad60dc4efd12195733f96bb4fdb0e6e0", "shasum": "" }, "require": { @@ -2490,20 +2532,20 @@ } ], "description": "Graby helps you extract article content from web pages", - "time": "2015-12-24 08:28:38" + "time": "2015-12-02 13:22:19" }, { "name": "j0k3r/graby-site-config", - "version": "1.0.11", + "version": "1.0.9", "source": { "type": "git", "url": "https://github.com/j0k3r/graby-site-config.git", - "reference": "ac198f308beabccc97bbd35ed0daeaac63fbf1e3" + "reference": "7666fed2a2cd211ef366f6fed9ccddd8e0b9e623" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/j0k3r/graby-site-config/zipball/ac198f308beabccc97bbd35ed0daeaac63fbf1e3", - "reference": "ac198f308beabccc97bbd35ed0daeaac63fbf1e3", + "url": "https://api.github.com/repos/j0k3r/graby-site-config/zipball/7666fed2a2cd211ef366f6fed9ccddd8e0b9e623", + "reference": "7666fed2a2cd211ef366f6fed9ccddd8e0b9e623", "shasum": "" }, "require": { @@ -2526,7 +2568,7 @@ } ], "description": "Graby site config files", - "time": "2015-12-23 22:52:15" + "time": "2015-12-03 19:49:20" }, { "name": "j0k3r/php-readability", @@ -2921,16 +2963,16 @@ }, { "name": "kphoen/rulerz", - "version": "0.16.2", + "version": "0.16.1", "source": { "type": "git", "url": "https://github.com/K-Phoen/rulerz.git", - "reference": "2b4fd796dadad204353e966b9f53040225ce6871" + "reference": "d5dbd1c8d9fd5f0732a710de93056dce92ff927a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/K-Phoen/rulerz/zipball/2b4fd796dadad204353e966b9f53040225ce6871", - "reference": "2b4fd796dadad204353e966b9f53040225ce6871", + "url": "https://api.github.com/repos/K-Phoen/rulerz/zipball/d5dbd1c8d9fd5f0732a710de93056dce92ff927a", + "reference": "d5dbd1c8d9fd5f0732a710de93056dce92ff927a", "shasum": "" }, "require": { @@ -2987,7 +3029,7 @@ "doctrine", "specification" ], - "time": "2015-12-07 22:24:24" + "time": "2015-12-05 18:18:05" }, { "name": "kphoen/rulerz-bundle", @@ -3439,17 +3481,17 @@ }, { "name": "nelmio/api-doc-bundle", - "version": "2.11.2", + "version": "2.11.0", "target-dir": "Nelmio/ApiDocBundle", "source": { "type": "git", "url": "https://github.com/nelmio/NelmioApiDocBundle.git", - "reference": "1ae2cfa9a50279d722d6b6e7b02322cef948d55d" + "reference": "49238f44aa73f545c0a927b00251c89a0acf3005" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nelmio/NelmioApiDocBundle/zipball/1ae2cfa9a50279d722d6b6e7b02322cef948d55d", - "reference": "1ae2cfa9a50279d722d6b6e7b02322cef948d55d", + "url": "https://api.github.com/repos/nelmio/NelmioApiDocBundle/zipball/49238f44aa73f545c0a927b00251c89a0acf3005", + "reference": "49238f44aa73f545c0a927b00251c89a0acf3005", "shasum": "" }, "require": { @@ -3519,7 +3561,7 @@ "documentation", "rest" ], - "time": "2015-12-16 15:17:51" + "time": "2015-12-04 08:15:49" }, { "name": "nelmio/cors-bundle", @@ -3645,6 +3687,54 @@ ], "time": "2014-10-06 10:57:25" }, + { + "name": "paragonie/random_compat", + "version": "1.1.1", + "source": { + "type": "git", + "url": "https://github.com/paragonie/random_compat.git", + "reference": "a208865a5aeffc2dbbef2a5b3409887272d93f32" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paragonie/random_compat/zipball/a208865a5aeffc2dbbef2a5b3409887272d93f32", + "reference": "a208865a5aeffc2dbbef2a5b3409887272d93f32", + "shasum": "" + }, + "require": { + "php": ">=5.2.0" + }, + "require-dev": { + "phpunit/phpunit": "4.*|5.*" + }, + "suggest": { + "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." + }, + "type": "library", + "autoload": { + "files": [ + "lib/random.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paragon Initiative Enterprises", + "email": "security@paragonie.com", + "homepage": "https://paragonie.com" + } + ], + "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", + "keywords": [ + "csprng", + "pseudorandom", + "random" + ], + "time": "2015-12-01 02:52:15" + }, { "name": "phpcollection/phpcollection", "version": "0.4.0", @@ -3890,16 +3980,16 @@ }, { "name": "scheb/two-factor-bundle", - "version": "v1.4.7", + "version": "v1.5.0", "source": { "type": "git", "url": "https://github.com/scheb/two-factor-bundle.git", - "reference": "ef6830dbbf62b22efd335db8f64bf0f51d4284a2" + "reference": "b0da3a85b181237c3bebde88c99b18745313360b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/scheb/two-factor-bundle/zipball/ef6830dbbf62b22efd335db8f64bf0f51d4284a2", - "reference": "ef6830dbbf62b22efd335db8f64bf0f51d4284a2", + "url": "https://api.github.com/repos/scheb/two-factor-bundle/zipball/b0da3a85b181237c3bebde88c99b18745313360b", + "reference": "b0da3a85b181237c3bebde88c99b18745313360b", "shasum": "" }, "require": { @@ -3935,7 +4025,7 @@ "two-factor", "two-step" ], - "time": "2015-08-25 19:58:00" + "time": "2015-11-15 13:31:23" }, { "name": "sensio/distribution-bundle", @@ -4486,6 +4576,459 @@ ], "time": "2015-11-17 10:02:29" }, + { + "name": "symfony/polyfill-intl-icu", + "version": "v1.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-icu.git", + "reference": "2deb44160e1c886241c06602b12b98779f728177" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-icu/zipball/2deb44160e1c886241c06602b12b98779f728177", + "reference": "2deb44160e1c886241c06602b12b98779f728177", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "symfony/intl": "~2.3|~3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's ICU-related data and classes", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "icu", + "intl", + "polyfill", + "portable", + "shim" + ], + "time": "2015-11-04 20:28:58" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "0b6a8940385311a24e060ec1fe35680e17c74497" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/0b6a8940385311a24e060ec1fe35680e17c74497", + "reference": "0b6a8940385311a24e060ec1fe35680e17c74497", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "time": "2015-11-04 20:28:58" + }, + { + "name": "symfony/polyfill-php54", + "version": "v1.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php54.git", + "reference": "2c9f6d98eb30dc04fe0b06f9cc92a55acea5bdcc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php54/zipball/2c9f6d98eb30dc04fe0b06f9cc92a55acea5bdcc", + "reference": "2c9f6d98eb30dc04fe0b06f9cc92a55acea5bdcc", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Php54\\": "" + }, + "files": [ + "bootstrap.php" + ], + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 5.4+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "time": "2015-11-04 20:28:58" + }, + { + "name": "symfony/polyfill-php55", + "version": "v1.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php55.git", + "reference": "3adc962a6250c02adb508e85ecfa6fcfee9eec47" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php55/zipball/3adc962a6250c02adb508e85ecfa6fcfee9eec47", + "reference": "3adc962a6250c02adb508e85ecfa6fcfee9eec47", + "shasum": "" + }, + "require": { + "ircmaxell/password-compat": "~1.0", + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Php55\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 5.5+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "time": "2015-11-04 20:28:58" + }, + { + "name": "symfony/polyfill-php56", + "version": "v1.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php56.git", + "reference": "a6bd4770a6967517e6610529e14afaa3111094a3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php56/zipball/a6bd4770a6967517e6610529e14afaa3111094a3", + "reference": "a6bd4770a6967517e6610529e14afaa3111094a3", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "symfony/polyfill-util": "~1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Php56\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "time": "2015-11-04 20:28:58" + }, + { + "name": "symfony/polyfill-php70", + "version": "v1.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php70.git", + "reference": "7f7f3c9c2b9f17722e0cd64fdb4f957330c53146" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/7f7f3c9c2b9f17722e0cd64fdb4f957330c53146", + "reference": "7f7f3c9c2b9f17722e0cd64fdb4f957330c53146", + "shasum": "" + }, + "require": { + "paragonie/random_compat": "~1.0", + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Php70\\": "" + }, + "files": [ + "bootstrap.php" + ], + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "time": "2015-11-04 20:28:58" + }, + { + "name": "symfony/polyfill-util", + "version": "v1.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-util.git", + "reference": "4271c55cbc0a77b2641f861b978123e46b3da969" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-util/zipball/4271c55cbc0a77b2641f861b978123e46b3da969", + "reference": "4271c55cbc0a77b2641f861b978123e46b3da969", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Util\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony utilities for portability of PHP codes", + "homepage": "https://symfony.com", + "keywords": [ + "compat", + "compatibility", + "polyfill", + "shim" + ], + "time": "2015-11-04 20:28:58" + }, + { + "name": "symfony/security-acl", + "version": "v2.7.7", + "source": { + "type": "git", + "url": "https://github.com/symfony/security-acl.git", + "reference": "9aec8062e33fca5e08d2a78669b2222252e8c3b6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/security-acl/zipball/9aec8062e33fca5e08d2a78669b2222252e8c3b6", + "reference": "9aec8062e33fca5e08d2a78669b2222252e8c3b6", + "shasum": "" + }, + "require": { + "php": ">=5.3.9", + "symfony/security-core": "~2.4" + }, + "require-dev": { + "doctrine/common": "~2.2", + "doctrine/dbal": "~2.2", + "psr/log": "~1.0" + }, + "suggest": { + "doctrine/dbal": "For using the built-in ACL implementation", + "symfony/class-loader": "For using the ACL generateSql script", + "symfony/finder": "For using the ACL generateSql script" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.7-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Security\\Acl\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Security Component - ACL (Access Control List)", + "homepage": "https://symfony.com", + "time": "2015-11-18 13:41:01" +>>>>>>> Update deps + }, { "name": "symfony/swiftmailer-bundle", "version": "v2.3.9", @@ -4545,24 +5088,35 @@ }, { "name": "symfony/symfony", - "version": "v2.7.8", + "version": "v2.8.0", "source": { "type": "git", "url": "https://github.com/symfony/symfony.git", - "reference": "ad264021e44a5aaa132f16aef69f92e56795683e" + "reference": "5615b92cd452cd54f1433a3f53de87c096a1107f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/symfony/zipball/ad264021e44a5aaa132f16aef69f92e56795683e", - "reference": "ad264021e44a5aaa132f16aef69f92e56795683e", + "url": "https://api.github.com/repos/symfony/symfony/zipball/5615b92cd452cd54f1433a3f53de87c096a1107f", + "reference": "5615b92cd452cd54f1433a3f53de87c096a1107f", "shasum": "" }, "require": { "doctrine/common": "~2.4", "php": ">=5.3.9", "psr/log": "~1.0", + "symfony/polyfill-intl-icu": "~1.0", + "symfony/polyfill-mbstring": "~1.0", + "symfony/polyfill-php54": "~1.0", + "symfony/polyfill-php55": "~1.0", + "symfony/polyfill-php56": "~1.0", + "symfony/polyfill-php70": "~1.0", + "symfony/polyfill-util": "~1.0", + "symfony/security-acl": "~2.7", "twig/twig": "~1.23|~2.0" }, + "conflict": { + "phpdocumentor/reflection": "<1.0.7" + }, "replace": { "symfony/asset": "self.version", "symfony/browser-kit": "self.version", @@ -4584,18 +5138,20 @@ "symfony/http-foundation": "self.version", "symfony/http-kernel": "self.version", "symfony/intl": "self.version", + "symfony/ldap": "self.version", "symfony/locale": "self.version", "symfony/monolog-bridge": "self.version", "symfony/options-resolver": "self.version", "symfony/process": "self.version", "symfony/property-access": "self.version", + "symfony/property-info": "self.version", "symfony/proxy-manager-bridge": "self.version", "symfony/routing": "self.version", "symfony/security": "self.version", - "symfony/security-acl": "self.version", "symfony/security-bundle": "self.version", "symfony/security-core": "self.version", "symfony/security-csrf": "self.version", + "symfony/security-guard": "self.version", "symfony/security-http": "self.version", "symfony/serializer": "self.version", "symfony/stopwatch": "self.version", @@ -4615,14 +5171,14 @@ "doctrine/doctrine-bundle": "~1.2", "doctrine/orm": "~2.4,>=2.4.5", "egulias/email-validator": "~1.2", - "ircmaxell/password-compat": "~1.0", "monolog/monolog": "~1.11", - "ocramius/proxy-manager": "~0.4|~1.0" + "ocramius/proxy-manager": "~0.4|~1.0", + "phpdocumentor/reflection": "^1.0.7" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "2.8-dev" } }, "autoload": { @@ -4636,12 +5192,8 @@ "Symfony\\Component\\": "src/Symfony/Component/" }, "classmap": [ - "src/Symfony/Component/HttpFoundation/Resources/stubs", "src/Symfony/Component/Intl/Resources/stubs" ], - "files": [ - "src/Symfony/Component/Intl/Resources/stubs/functions.php" - ], "exclude-from-classmap": [ "**/Tests/" ] @@ -4665,7 +5217,7 @@ "keywords": [ "framework" ], - "time": "2015-12-26 15:02:06" + "time": "2015-11-30 17:26:10" }, { "name": "tecnickcom/tcpdf", @@ -5562,16 +6114,16 @@ }, { "name": "phpunit/phpunit", - "version": "4.8.21", + "version": "4.8.19", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "ea76b17bced0500a28098626b84eda12dbcf119c" + "reference": "b2caaf8947aba5e002d42126723e9d69795f32b4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/ea76b17bced0500a28098626b84eda12dbcf119c", - "reference": "ea76b17bced0500a28098626b84eda12dbcf119c", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/b2caaf8947aba5e002d42126723e9d69795f32b4", + "reference": "b2caaf8947aba5e002d42126723e9d69795f32b4", "shasum": "" }, "require": { @@ -5630,7 +6182,7 @@ "testing", "xunit" ], - "time": "2015-12-12 07:45:58" + "time": "2015-11-30 08:18:59" }, { "name": "phpunit/phpunit-mock-objects", @@ -5754,23 +6306,23 @@ }, { "name": "sebastian/diff", - "version": "1.4.1", + "version": "1.4.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "13edfd8706462032c2f52b4b862974dd46b71c9e" + "reference": "2b0112e42c338afa9ad9dfeb94d66f6d84c2f828" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/13edfd8706462032c2f52b4b862974dd46b71c9e", - "reference": "13edfd8706462032c2f52b4b862974dd46b71c9e", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/2b0112e42c338afa9ad9dfeb94d66f6d84c2f828", + "reference": "2b0112e42c338afa9ad9dfeb94d66f6d84c2f828", "shasum": "" }, "require": { "php": ">=5.3.3" }, "require-dev": { - "phpunit/phpunit": "~4.8" + "phpunit/phpunit": "~5" }, "type": "library", "extra": { @@ -5802,7 +6354,7 @@ "keywords": [ "diff" ], - "time": "2015-12-08 07:14:41" + "time": "2015-12-06 07:21:36" }, { "name": "sebastian/environment", @@ -6109,16 +6661,16 @@ }, { "name": "symfony/phpunit-bridge", - "version": "v2.7.8", + "version": "v2.8.0", "source": { "type": "git", "url": "https://github.com/symfony/phpunit-bridge.git", - "reference": "e960e64acbed50e49818eb78840486c8d7fe1bed" + "reference": "fb79ac646c342fdff19864619943a6c58bb28893" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/e960e64acbed50e49818eb78840486c8d7fe1bed", - "reference": "e960e64acbed50e49818eb78840486c8d7fe1bed", + "url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/fb79ac646c342fdff19864619943a6c58bb28893", + "reference": "fb79ac646c342fdff19864619943a6c58bb28893", "shasum": "" }, "require": { @@ -6130,7 +6682,7 @@ "type": "symfony-bridge", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "2.8-dev" } }, "autoload": { @@ -6160,7 +6712,7 @@ ], "description": "Symfony PHPUnit Bridge", "homepage": "https://symfony.com", - "time": "2015-11-06 10:15:01" + "time": "2015-11-27 22:51:43" } ], "aliases": [], From 30a40b02984e8143d29f70d97f2417a81d520b71 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Sun, 6 Dec 2015 15:00:26 +0100 Subject: [PATCH 02/20] Remove weak deprecation :boom: --- phpunit.xml.dist | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 7bec5b5e9..5549b8a54 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -23,8 +23,9 @@ - From bd2c8b4677cb8c81fa909837ee330c536cd0a5ef Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Sun, 6 Dec 2015 16:14:47 +0100 Subject: [PATCH 03/20] Wallabag now require PHP >= 5.5 See https://github.com/K-Phoen/rulerz/pull/21/files#diff-b5d0ee8c97c7abd7e3fa29b9a27d1780 --- .travis.yml | 2 +- composer.lock | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7a7c9056c..287369e33 100644 --- a/.travis.yml +++ b/.travis.yml @@ -49,7 +49,7 @@ before_script: script: - ant prepare-$DB - - SYMFONY_DEPRECATIONS_HELPER=weak bin/phpunit -v + - bin/phpunit -v # after_script: # - | diff --git a/composer.lock b/composer.lock index 479da672c..70bcc2ec2 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,8 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "f284c10bdce34af9783936d745d230d5", - "content-hash": "4de200774d9848416365015125e0f171", + "hash": "a220bd9143d23fd3a86b2ed83e6551c9", + "content-hash": "55bc43598b50ffeb3a1db44cfb267deb", "packages": [ { "name": "behat/transliterator", @@ -6725,7 +6725,7 @@ "prefer-stable": true, "prefer-lowest": false, "platform": { - "php": ">=5.5.0" + "php": ">=5.5" }, "platform-dev": [] } From 516022d60ea5c4e0c18a222590d23190a2c7765f Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Tue, 22 Dec 2015 09:34:32 +0100 Subject: [PATCH 04/20] Improve composer.json Following great article from Jordi: http://seld.be/notes/new-composer-patterns Changelogs summary: - paragonie/random_compat updated from 1.1.1 to 1.1.4 See changes: https://github.com/paragonie/random_compat/compare/1.1.1...1.1.4 Release notes: https://github.com/paragonie/random_compat/releases/tag/1.1.4 - doctrine/cache updated from v1.5.2 to v1.5.4 See changes: https://github.com/doctrine/cache/compare/v1.5.2...v1.5.4 Release notes: https://github.com/doctrine/cache/releases/tag/v1.5.4 - sensio/framework-extra-bundle updated from v3.0.11 to v3.0.12 See changes: https://github.com/sensiolabs/SensioFrameworkExtraBundle/compare/v3.0.11...v3.0.12 Release notes: https://github.com/sensiolabs/SensioFrameworkExtraBundle/releases/tag/v3.0.12 - nelmio/cors-bundle updated from 1.4.0 to 1.4.1 See changes: https://github.com/nelmio/NelmioCorsBundle/compare/1.4.0...1.4.1 Release notes: https://github.com/nelmio/NelmioCorsBundle/releases/tag/1.4.1 - friendsofsymfony/rest-bundle updated from 1.7.4 to 1.7.6 See changes: https://github.com/FriendsOfSymfony/FOSRestBundle/compare/1.7.4...1.7.6 Release notes: https://github.com/FriendsOfSymfony/FOSRestBundle/releases/tag/1.7.6 - nelmio/api-doc-bundle updated from 2.11.0 to 2.11.1 See changes: https://github.com/nelmio/NelmioApiDocBundle/compare/2.11.0...2.11.1 Release notes: https://github.com/nelmio/NelmioApiDocBundle/releases/tag/2.11.1 - neitanod/forceutf8 updated from v1.5 to v2.0 See changes: https://github.com/neitanod/forceutf8/compare/v1.5...v2.0 Release notes: https://github.com/neitanod/forceutf8/releases/tag/v2.0 - j0k3r/graby-site-config updated from 1.0.9 to 1.0.10 See changes: https://github.com/j0k3r/graby-site-config/compare/1.0.9...1.0.10 Release notes: https://github.com/j0k3r/graby-site-config/releases/tag/1.0.10 - j0k3r/graby updated from 1.0.6 to 1.0.7 See changes: https://github.com/j0k3r/graby/compare/1.0.6...1.0.7 Release notes: https://github.com/j0k3r/graby/releases/tag/1.0.7 - sebastian/diff updated from 1.4.0 to 1.4.1 See changes: https://github.com/sebastianbergmann/diff/compare/1.4.0...1.4.1 Release notes: https://github.com/sebastianbergmann/diff/releases/tag/1.4.1 - phpunit/phpunit updated from 4.8.19 to 4.8.21 See changes: https://github.com/sebastianbergmann/phpunit/compare/4.8.19...4.8.21 Release notes: https://github.com/sebastianbergmann/phpunit/releases/tag/4.8.21 - kphoen/rulerz updated from 0.16.1 to 0.16.2 See changes: https://github.com/K-Phoen/rulerz/compare/0.16.1...0.16.2 Release notes: https://github.com/K-Phoen/rulerz/releases/tag/0.16.2 --- composer.json | 33 +++++++----------- composer.lock | 96 +++++++++++++++++++++++++-------------------------- 2 files changed, 61 insertions(+), 68 deletions(-) diff --git a/composer.json b/composer.json index 4018cd51f..cce267027 100644 --- a/composer.json +++ b/composer.json @@ -69,29 +69,22 @@ "phpunit/phpunit": "~4.4", "symfony/phpunit-bridge": "~2.7" }, - "repositories": [ - { - "type": "vcs", - "url": "https://github.com/wallabag/phpMobi" - } - ], "scripts": { - "post-install-cmd": [ - "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters", - "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", - "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", - "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", - "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile" - ], - "post-update-cmd": [ - "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters", - "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", - "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", - "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", - "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile" - ], "build-parameters": [ "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters" + ], + "post-cmd": [ + "@build-parameters", + "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", + "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", + "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", + "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile" + ], + "post-install-cmd": [ + "@post-cmd" + ], + "post-update-cmd": [ + "@post-cmd" ] }, "extra": { diff --git a/composer.lock b/composer.lock index 70bcc2ec2..8db3f9485 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,8 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "a220bd9143d23fd3a86b2ed83e6551c9", - "content-hash": "55bc43598b50ffeb3a1db44cfb267deb", + "hash": "3cfde4d3168704b0058a99413c69fc5a", + "content-hash": "6916bff6c2a88f268cd6ca75aebbf4c6", "packages": [ { "name": "behat/transliterator", @@ -117,16 +117,16 @@ }, { "name": "doctrine/cache", - "version": "v1.5.2", + "version": "v1.5.4", "source": { "type": "git", "url": "https://github.com/doctrine/cache.git", - "reference": "47c7128262da274f590ae6f86eb137a7a64e82af" + "reference": "47cdc76ceb95cc591d9c79a36dc3794975b5d136" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/cache/zipball/47c7128262da274f590ae6f86eb137a7a64e82af", - "reference": "47c7128262da274f590ae6f86eb137a7a64e82af", + "url": "https://api.github.com/repos/doctrine/cache/zipball/47cdc76ceb95cc591d9c79a36dc3794975b5d136", + "reference": "47cdc76ceb95cc591d9c79a36dc3794975b5d136", "shasum": "" }, "require": { @@ -183,7 +183,7 @@ "cache", "caching" ], - "time": "2015-12-03 10:50:37" + "time": "2015-12-19 05:03:47" }, { "name": "doctrine/collections", @@ -1106,17 +1106,17 @@ }, { "name": "friendsofsymfony/rest-bundle", - "version": "1.7.4", + "version": "1.7.6", "target-dir": "FOS/RestBundle", "source": { "type": "git", "url": "https://github.com/FriendsOfSymfony/FOSRestBundle.git", - "reference": "64ba918b1eb47acb5aa7fef1ce95623235b53775" + "reference": "f95b2f141748e9a5e2ddae833f60c38417aee8c3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/zipball/64ba918b1eb47acb5aa7fef1ce95623235b53775", - "reference": "64ba918b1eb47acb5aa7fef1ce95623235b53775", + "url": "https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/zipball/f95b2f141748e9a5e2ddae833f60c38417aee8c3", + "reference": "f95b2f141748e9a5e2ddae833f60c38417aee8c3", "shasum": "" }, "require": { @@ -1188,7 +1188,7 @@ "keywords": [ "rest" ], - "time": "2015-12-05 14:55:07" + "time": "2015-12-20 13:45:30" }, { "name": "friendsofsymfony/user-bundle", @@ -2480,16 +2480,16 @@ }, { "name": "j0k3r/graby", - "version": "1.0.6", + "version": "1.0.7", "source": { "type": "git", "url": "https://github.com/j0k3r/graby.git", - "reference": "c9f5543fad60dc4efd12195733f96bb4fdb0e6e0" + "reference": "301f8c492be4c9b2bed8f29c32641636de0eca0a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/j0k3r/graby/zipball/c9f5543fad60dc4efd12195733f96bb4fdb0e6e0", - "reference": "c9f5543fad60dc4efd12195733f96bb4fdb0e6e0", + "url": "https://api.github.com/repos/j0k3r/graby/zipball/301f8c492be4c9b2bed8f29c32641636de0eca0a", + "reference": "301f8c492be4c9b2bed8f29c32641636de0eca0a", "shasum": "" }, "require": { @@ -2532,20 +2532,20 @@ } ], "description": "Graby helps you extract article content from web pages", - "time": "2015-12-02 13:22:19" + "time": "2015-12-16 10:21:48" }, { "name": "j0k3r/graby-site-config", - "version": "1.0.9", + "version": "1.0.10", "source": { "type": "git", "url": "https://github.com/j0k3r/graby-site-config.git", - "reference": "7666fed2a2cd211ef366f6fed9ccddd8e0b9e623" + "reference": "daea5cdd2c3d89cb90402205392423030f8eebce" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/j0k3r/graby-site-config/zipball/7666fed2a2cd211ef366f6fed9ccddd8e0b9e623", - "reference": "7666fed2a2cd211ef366f6fed9ccddd8e0b9e623", + "url": "https://api.github.com/repos/j0k3r/graby-site-config/zipball/daea5cdd2c3d89cb90402205392423030f8eebce", + "reference": "daea5cdd2c3d89cb90402205392423030f8eebce", "shasum": "" }, "require": { @@ -2568,7 +2568,7 @@ } ], "description": "Graby site config files", - "time": "2015-12-03 19:49:20" + "time": "2015-12-16 10:27:19" }, { "name": "j0k3r/php-readability", @@ -2963,16 +2963,16 @@ }, { "name": "kphoen/rulerz", - "version": "0.16.1", + "version": "0.16.2", "source": { "type": "git", "url": "https://github.com/K-Phoen/rulerz.git", - "reference": "d5dbd1c8d9fd5f0732a710de93056dce92ff927a" + "reference": "2b4fd796dadad204353e966b9f53040225ce6871" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/K-Phoen/rulerz/zipball/d5dbd1c8d9fd5f0732a710de93056dce92ff927a", - "reference": "d5dbd1c8d9fd5f0732a710de93056dce92ff927a", + "url": "https://api.github.com/repos/K-Phoen/rulerz/zipball/2b4fd796dadad204353e966b9f53040225ce6871", + "reference": "2b4fd796dadad204353e966b9f53040225ce6871", "shasum": "" }, "require": { @@ -3029,7 +3029,7 @@ "doctrine", "specification" ], - "time": "2015-12-05 18:18:05" + "time": "2015-12-07 22:24:24" }, { "name": "kphoen/rulerz-bundle", @@ -3481,17 +3481,17 @@ }, { "name": "nelmio/api-doc-bundle", - "version": "2.11.0", + "version": "2.11.1", "target-dir": "Nelmio/ApiDocBundle", "source": { "type": "git", "url": "https://github.com/nelmio/NelmioApiDocBundle.git", - "reference": "49238f44aa73f545c0a927b00251c89a0acf3005" + "reference": "19d4e37365edd5104e31662a2d3b510d92a7e78a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nelmio/NelmioApiDocBundle/zipball/49238f44aa73f545c0a927b00251c89a0acf3005", - "reference": "49238f44aa73f545c0a927b00251c89a0acf3005", + "url": "https://api.github.com/repos/nelmio/NelmioApiDocBundle/zipball/19d4e37365edd5104e31662a2d3b510d92a7e78a", + "reference": "19d4e37365edd5104e31662a2d3b510d92a7e78a", "shasum": "" }, "require": { @@ -3561,7 +3561,7 @@ "documentation", "rest" ], - "time": "2015-12-04 08:15:49" + "time": "2015-12-08 13:19:42" }, { "name": "nelmio/cors-bundle", @@ -3689,16 +3689,16 @@ }, { "name": "paragonie/random_compat", - "version": "1.1.1", + "version": "1.1.4", "source": { "type": "git", "url": "https://github.com/paragonie/random_compat.git", - "reference": "a208865a5aeffc2dbbef2a5b3409887272d93f32" + "reference": "d762ee5b099a29044603cd4649851e81aa66cb47" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/paragonie/random_compat/zipball/a208865a5aeffc2dbbef2a5b3409887272d93f32", - "reference": "a208865a5aeffc2dbbef2a5b3409887272d93f32", + "url": "https://api.github.com/repos/paragonie/random_compat/zipball/d762ee5b099a29044603cd4649851e81aa66cb47", + "reference": "d762ee5b099a29044603cd4649851e81aa66cb47", "shasum": "" }, "require": { @@ -3733,7 +3733,7 @@ "pseudorandom", "random" ], - "time": "2015-12-01 02:52:15" + "time": "2015-12-10 14:48:13" }, { "name": "phpcollection/phpcollection", @@ -6114,16 +6114,16 @@ }, { "name": "phpunit/phpunit", - "version": "4.8.19", + "version": "4.8.21", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "b2caaf8947aba5e002d42126723e9d69795f32b4" + "reference": "ea76b17bced0500a28098626b84eda12dbcf119c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/b2caaf8947aba5e002d42126723e9d69795f32b4", - "reference": "b2caaf8947aba5e002d42126723e9d69795f32b4", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/ea76b17bced0500a28098626b84eda12dbcf119c", + "reference": "ea76b17bced0500a28098626b84eda12dbcf119c", "shasum": "" }, "require": { @@ -6182,7 +6182,7 @@ "testing", "xunit" ], - "time": "2015-11-30 08:18:59" + "time": "2015-12-12 07:45:58" }, { "name": "phpunit/phpunit-mock-objects", @@ -6306,23 +6306,23 @@ }, { "name": "sebastian/diff", - "version": "1.4.0", + "version": "1.4.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "2b0112e42c338afa9ad9dfeb94d66f6d84c2f828" + "reference": "13edfd8706462032c2f52b4b862974dd46b71c9e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/2b0112e42c338afa9ad9dfeb94d66f6d84c2f828", - "reference": "2b0112e42c338afa9ad9dfeb94d66f6d84c2f828", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/13edfd8706462032c2f52b4b862974dd46b71c9e", + "reference": "13edfd8706462032c2f52b4b862974dd46b71c9e", "shasum": "" }, "require": { "php": ">=5.3.3" }, "require-dev": { - "phpunit/phpunit": "~5" + "phpunit/phpunit": "~4.8" }, "type": "library", "extra": { @@ -6354,7 +6354,7 @@ "keywords": [ "diff" ], - "time": "2015-12-06 07:21:36" + "time": "2015-12-08 07:14:41" }, { "name": "sebastian/environment", From 619cc45359ead519b64129181a07e14160fbbfcb Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Tue, 22 Dec 2015 10:16:34 +0100 Subject: [PATCH 05/20] Symfony Upgrade Fixer FTW symfony-upgrade-fixer fix src/Wallabag/ --- .../Controller/WallabagRestController.php | 4 ++-- src/Wallabag/ApiBundle/Entity/AccessToken.php | 2 +- src/Wallabag/ApiBundle/Entity/AuthCode.php | 2 +- src/Wallabag/ApiBundle/Entity/Client.php | 2 +- .../ApiBundle/Entity/RefreshToken.php | 2 +- .../CoreBundle/Command/InstallCommand.php | 9 ++++---- .../Controller/ConfigController.php | 8 +++---- .../CoreBundle/Controller/EntryController.php | 8 +++---- .../CoreBundle/Controller/RssController.php | 10 ++++----- .../CoreBundle/Controller/TagController.php | 4 ++-- .../WallabagCoreExtension.php | 4 ++-- src/Wallabag/CoreBundle/Entity/Entry.php | 2 +- src/Wallabag/CoreBundle/Entity/Tag.php | 4 ++-- .../CoreBundle/Entity/TaggingRule.php | 2 +- .../CustomDoctrineORMSubscriber.php | 2 +- .../EventListener/LocaleListener.php | 2 +- .../RegistrationConfirmedListener.php | 4 ++-- .../CoreBundle/Filter/EntryFilterType.php | 6 ++--- .../Form/Type/ChangePasswordType.php | 11 ++++++---- .../CoreBundle/Form/Type/ConfigType.php | 10 +++++---- .../CoreBundle/Form/Type/EditEntryType.php | 11 ++++++---- .../CoreBundle/Form/Type/NewEntryType.php | 8 ++++--- .../CoreBundle/Form/Type/NewTagType.php | 8 ++++--- .../CoreBundle/Form/Type/NewUserType.php | 14 +++++++----- src/Wallabag/CoreBundle/Form/Type/RssType.php | 5 +++-- .../CoreBundle/Form/Type/TaggingRuleType.php | 8 ++++--- .../Form/Type/UserInformationType.php | 14 +++++++----- .../CoreBundle/Helper/EntriesExport.php | 6 ++--- .../UsernameRssTokenConverter.php | 2 +- .../CoreBundle/Resources/config/services.yml | 22 +++++++++---------- .../Subscriber/TablePrefixSubscriber.php | 2 +- .../Tests/Command/InstallCommandTest.php | 12 +++++----- .../EventListener/LocaleListenerTest.php | 6 ++--- .../RegistrationConfirmedListenerTest.php | 6 ++--- .../EventListener/UserLocaleListenerTest.php | 6 ++--- .../Tests/Helper/ContentProxyTest.php | 2 +- .../Tests/Helper/RuleBasedTaggerTest.php | 2 +- .../UsernameRssTokenConverterTest.php | 2 +- .../Subscriber/TablePrefixSubscriberTest.php | 4 ++-- .../Controller/ResettingController.php | 6 ++--- src/Wallabag/UserBundle/Entity/User.php | 6 ++--- 41 files changed, 137 insertions(+), 113 deletions(-) diff --git a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php index 354a6f8e7..f8a2745a4 100644 --- a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php +++ b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php @@ -3,13 +3,13 @@ namespace Wallabag\ApiBundle\Controller; use FOS\RestBundle\Controller\FOSRestController; +use Hateoas\Configuration\Route; +use Hateoas\Representation\Factory\PagerfantaFactory; use Nelmio\ApiDocBundle\Annotation\ApiDoc; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Wallabag\CoreBundle\Entity\Entry; use Wallabag\CoreBundle\Entity\Tag; -use Hateoas\Configuration\Route; -use Hateoas\Representation\Factory\PagerfantaFactory; class WallabagRestController extends FOSRestController { diff --git a/src/Wallabag/ApiBundle/Entity/AccessToken.php b/src/Wallabag/ApiBundle/Entity/AccessToken.php index b1f4e7de2..2ff63a83e 100644 --- a/src/Wallabag/ApiBundle/Entity/AccessToken.php +++ b/src/Wallabag/ApiBundle/Entity/AccessToken.php @@ -2,8 +2,8 @@ namespace Wallabag\ApiBundle\Entity; -use FOS\OAuthServerBundle\Entity\AccessToken as BaseAccessToken; use Doctrine\ORM\Mapping as ORM; +use FOS\OAuthServerBundle\Entity\AccessToken as BaseAccessToken; /** * @ORM\Table("oauth2_access_tokens") diff --git a/src/Wallabag/ApiBundle/Entity/AuthCode.php b/src/Wallabag/ApiBundle/Entity/AuthCode.php index 81398158b..4d4b09fea 100644 --- a/src/Wallabag/ApiBundle/Entity/AuthCode.php +++ b/src/Wallabag/ApiBundle/Entity/AuthCode.php @@ -2,8 +2,8 @@ namespace Wallabag\ApiBundle\Entity; -use FOS\OAuthServerBundle\Entity\AuthCode as BaseAuthCode; use Doctrine\ORM\Mapping as ORM; +use FOS\OAuthServerBundle\Entity\AuthCode as BaseAuthCode; /** * @ORM\Table("oauth2_auth_codes") diff --git a/src/Wallabag/ApiBundle/Entity/Client.php b/src/Wallabag/ApiBundle/Entity/Client.php index d449870a4..c04ed0f62 100644 --- a/src/Wallabag/ApiBundle/Entity/Client.php +++ b/src/Wallabag/ApiBundle/Entity/Client.php @@ -2,8 +2,8 @@ namespace Wallabag\ApiBundle\Entity; -use FOS\OAuthServerBundle\Entity\Client as BaseClient; use Doctrine\ORM\Mapping as ORM; +use FOS\OAuthServerBundle\Entity\Client as BaseClient; /** * @ORM\Table("oauth2_clients") diff --git a/src/Wallabag/ApiBundle/Entity/RefreshToken.php b/src/Wallabag/ApiBundle/Entity/RefreshToken.php index be2c1d2e9..6d0cab688 100644 --- a/src/Wallabag/ApiBundle/Entity/RefreshToken.php +++ b/src/Wallabag/ApiBundle/Entity/RefreshToken.php @@ -2,8 +2,8 @@ namespace Wallabag\ApiBundle\Entity; -use FOS\OAuthServerBundle\Entity\RefreshToken as BaseRefreshToken; use Doctrine\ORM\Mapping as ORM; +use FOS\OAuthServerBundle\Entity\RefreshToken as BaseRefreshToken; /** * @ORM\Table("oauth2_refresh_tokens") diff --git a/src/Wallabag/CoreBundle/Command/InstallCommand.php b/src/Wallabag/CoreBundle/Command/InstallCommand.php index e791d4dda..941cb8cdc 100644 --- a/src/Wallabag/CoreBundle/Command/InstallCommand.php +++ b/src/Wallabag/CoreBundle/Command/InstallCommand.php @@ -3,15 +3,16 @@ namespace Wallabag\CoreBundle\Command; use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; +use Symfony\Component\Console\Helper\Table; +use Symfony\Component\Console\Input\ArrayInput; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; -use Symfony\Component\Console\Input\ArrayInput; -use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\NullOutput; -use Symfony\Component\Console\Question\Question; +use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Question\ConfirmationQuestion; -use Symfony\Component\Console\Helper\Table; +use Symfony\Component\Console\Question\Question; use Wallabag\CoreBundle\Entity\Config; +use Wallabag\UserBundle\Entity\User; class InstallCommand extends ContainerAwareCommand { diff --git a/src/Wallabag/CoreBundle/Controller/ConfigController.php b/src/Wallabag/CoreBundle/Controller/ConfigController.php index 7a187710f..f51ccaa48 100644 --- a/src/Wallabag/CoreBundle/Controller/ConfigController.php +++ b/src/Wallabag/CoreBundle/Controller/ConfigController.php @@ -4,17 +4,17 @@ namespace Wallabag\CoreBundle\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Bundle\FrameworkBundle\Controller\Controller; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\JsonResponse; +use Symfony\Component\HttpFoundation\Request; use Wallabag\CoreBundle\Entity\Config; use Wallabag\CoreBundle\Entity\TaggingRule; -use Wallabag\UserBundle\Entity\User; use Wallabag\CoreBundle\Form\Type\ChangePasswordType; -use Wallabag\CoreBundle\Form\Type\UserInformationType; -use Wallabag\CoreBundle\Form\Type\TaggingRuleType; use Wallabag\CoreBundle\Form\Type\NewUserType; use Wallabag\CoreBundle\Form\Type\RssType; +use Wallabag\CoreBundle\Form\Type\TaggingRuleType; +use Wallabag\CoreBundle\Form\Type\UserInformationType; use Wallabag\CoreBundle\Tools\Utils; +use Wallabag\UserBundle\Entity\User; class ConfigController extends Controller { diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php index 37f7ab60a..c1b5a71ba 100644 --- a/src/Wallabag/CoreBundle/Controller/EntryController.php +++ b/src/Wallabag/CoreBundle/Controller/EntryController.php @@ -2,16 +2,16 @@ namespace Wallabag\CoreBundle\Controller; +use Pagerfanta\Adapter\DoctrineORMAdapter; +use Pagerfanta\Pagerfanta; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Routing\Generator\UrlGeneratorInterface; use Wallabag\CoreBundle\Entity\Entry; -use Wallabag\CoreBundle\Form\Type\NewEntryType; -use Wallabag\CoreBundle\Form\Type\EditEntryType; use Wallabag\CoreBundle\Filter\EntryFilterType; -use Pagerfanta\Adapter\DoctrineORMAdapter; -use Pagerfanta\Pagerfanta; +use Wallabag\CoreBundle\Form\Type\EditEntryType; +use Wallabag\CoreBundle\Form\Type\NewEntryType; class EntryController extends Controller { diff --git a/src/Wallabag/CoreBundle/Controller/RssController.php b/src/Wallabag/CoreBundle/Controller/RssController.php index 023a6228e..2b7ef5985 100644 --- a/src/Wallabag/CoreBundle/Controller/RssController.php +++ b/src/Wallabag/CoreBundle/Controller/RssController.php @@ -2,13 +2,13 @@ namespace Wallabag\CoreBundle\Controller; -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; -use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; -use Symfony\Bundle\FrameworkBundle\Controller\Controller; -use Wallabag\UserBundle\Entity\User; -use Wallabag\CoreBundle\Entity\Entry; use Pagerfanta\Adapter\DoctrineORMAdapter; use Pagerfanta\Pagerfanta; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; +use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Wallabag\CoreBundle\Entity\Entry; +use Wallabag\UserBundle\Entity\User; class RssController extends Controller { diff --git a/src/Wallabag/CoreBundle/Controller/TagController.php b/src/Wallabag/CoreBundle/Controller/TagController.php index 64d53f0c7..682cc6e63 100644 --- a/src/Wallabag/CoreBundle/Controller/TagController.php +++ b/src/Wallabag/CoreBundle/Controller/TagController.php @@ -5,9 +5,9 @@ namespace Wallabag\CoreBundle\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; -use Wallabag\CoreBundle\Form\Type\NewTagType; -use Wallabag\CoreBundle\Entity\Tag; use Wallabag\CoreBundle\Entity\Entry; +use Wallabag\CoreBundle\Entity\Tag; +use Wallabag\CoreBundle\Form\Type\NewTagType; class TagController extends Controller { diff --git a/src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php b/src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php index 330cc9576..9ff9b732f 100644 --- a/src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php +++ b/src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php @@ -2,10 +2,10 @@ namespace Wallabag\CoreBundle\DependencyInjection; -use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\Config\FileLocator; -use Symfony\Component\HttpKernel\DependencyInjection\Extension; +use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Loader; +use Symfony\Component\HttpKernel\DependencyInjection\Extension; class WallabagCoreExtension extends Extension { diff --git a/src/Wallabag/CoreBundle/Entity/Entry.php b/src/Wallabag/CoreBundle/Entity/Entry.php index f11a77860..24b24dbb1 100644 --- a/src/Wallabag/CoreBundle/Entity/Entry.php +++ b/src/Wallabag/CoreBundle/Entity/Entry.php @@ -4,10 +4,10 @@ namespace Wallabag\CoreBundle\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Mapping as ORM; -use Symfony\Component\Validator\Constraints as Assert; use Hateoas\Configuration\Annotation as Hateoas; use JMS\Serializer\Annotation\Groups; use JMS\Serializer\Annotation\XmlRoot; +use Symfony\Component\Validator\Constraints as Assert; use Wallabag\UserBundle\Entity\User; /** diff --git a/src/Wallabag/CoreBundle/Entity/Tag.php b/src/Wallabag/CoreBundle/Entity/Tag.php index 0689c7b31..c1940e99b 100644 --- a/src/Wallabag/CoreBundle/Entity/Tag.php +++ b/src/Wallabag/CoreBundle/Entity/Tag.php @@ -2,12 +2,12 @@ namespace Wallabag\CoreBundle\Entity; +use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Mapping as ORM; -use JMS\Serializer\Annotation\XmlRoot; use JMS\Serializer\Annotation\ExclusionPolicy; use JMS\Serializer\Annotation\Expose; -use Doctrine\Common\Collections\ArrayCollection; use Gedmo\Mapping\Annotation as Gedmo; +use JMS\Serializer\Annotation\XmlRoot; /** * Tag. diff --git a/src/Wallabag/CoreBundle/Entity/TaggingRule.php b/src/Wallabag/CoreBundle/Entity/TaggingRule.php index 329d7ff85..28914cc19 100644 --- a/src/Wallabag/CoreBundle/Entity/TaggingRule.php +++ b/src/Wallabag/CoreBundle/Entity/TaggingRule.php @@ -3,8 +3,8 @@ namespace Wallabag\CoreBundle\Entity; use Doctrine\ORM\Mapping as ORM; -use Symfony\Component\Validator\Constraints as Assert; use KPhoen\RulerZBundle\Validator\Constraints as RulerZAssert; +use Symfony\Component\Validator\Constraints as Assert; /** * Tagging rule. diff --git a/src/Wallabag/CoreBundle/Event/Subscriber/CustomDoctrineORMSubscriber.php b/src/Wallabag/CoreBundle/Event/Subscriber/CustomDoctrineORMSubscriber.php index cfdbfe973..cabb3eca3 100644 --- a/src/Wallabag/CoreBundle/Event/Subscriber/CustomDoctrineORMSubscriber.php +++ b/src/Wallabag/CoreBundle/Event/Subscriber/CustomDoctrineORMSubscriber.php @@ -2,8 +2,8 @@ namespace Wallabag\CoreBundle\Event\Subscriber; -use Lexik\Bundle\FormFilterBundle\Event\Subscriber\DoctrineORMSubscriber; use Lexik\Bundle\FormFilterBundle\Event\GetFilterConditionEvent; +use Lexik\Bundle\FormFilterBundle\Event\Subscriber\DoctrineORMSubscriber; use Symfony\Component\EventDispatcher\EventSubscriberInterface; /** diff --git a/src/Wallabag/CoreBundle/EventListener/LocaleListener.php b/src/Wallabag/CoreBundle/EventListener/LocaleListener.php index 80f595046..05deac0ac 100644 --- a/src/Wallabag/CoreBundle/EventListener/LocaleListener.php +++ b/src/Wallabag/CoreBundle/EventListener/LocaleListener.php @@ -2,9 +2,9 @@ namespace Wallabag\CoreBundle\EventListener; +use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpKernel\Event\GetResponseEvent; use Symfony\Component\HttpKernel\KernelEvents; -use Symfony\Component\EventDispatcher\EventSubscriberInterface; /** * @see http://symfony.com/doc/current/cookbook/session/locale_sticky_session.html diff --git a/src/Wallabag/CoreBundle/EventListener/RegistrationConfirmedListener.php b/src/Wallabag/CoreBundle/EventListener/RegistrationConfirmedListener.php index 68c25f1f5..1c9160d56 100644 --- a/src/Wallabag/CoreBundle/EventListener/RegistrationConfirmedListener.php +++ b/src/Wallabag/CoreBundle/EventListener/RegistrationConfirmedListener.php @@ -2,11 +2,11 @@ namespace Wallabag\CoreBundle\EventListener; -use Symfony\Component\EventDispatcher\EventDispatcherInterface; -use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Doctrine\ORM\EntityManager; use FOS\UserBundle\Event\FilterUserResponseEvent; use FOS\UserBundle\FOSUserEvents; +use Symfony\Component\EventDispatcher\EventDispatcherInterface; +use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Wallabag\CoreBundle\Entity\Config; class RegistrationConfirmedListener implements EventSubscriberInterface diff --git a/src/Wallabag/CoreBundle/Filter/EntryFilterType.php b/src/Wallabag/CoreBundle/Filter/EntryFilterType.php index 32de21ca8..e0a1cb31b 100644 --- a/src/Wallabag/CoreBundle/Filter/EntryFilterType.php +++ b/src/Wallabag/CoreBundle/Filter/EntryFilterType.php @@ -2,11 +2,11 @@ namespace Wallabag\CoreBundle\Filter; +use Doctrine\ORM\EntityRepository; +use Lexik\Bundle\FormFilterBundle\Filter\Query\QueryInterface; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; -use Lexik\Bundle\FormFilterBundle\Filter\Query\QueryInterface; -use Doctrine\ORM\EntityRepository; use Wallabag\UserBundle\Entity\User; class EntryFilterType extends AbstractType @@ -77,7 +77,7 @@ class EntryFilterType extends AbstractType ; } - public function getName() + public function getBlockPrefix() { return 'entry_filter'; } diff --git a/src/Wallabag/CoreBundle/Form/Type/ChangePasswordType.php b/src/Wallabag/CoreBundle/Form/Type/ChangePasswordType.php index 82e1954d1..615b81690 100644 --- a/src/Wallabag/CoreBundle/Form/Type/ChangePasswordType.php +++ b/src/Wallabag/CoreBundle/Form/Type/ChangePasswordType.php @@ -3,6 +3,9 @@ namespace Wallabag\CoreBundle\Form\Type; use Symfony\Component\Form\AbstractType; +use Symfony\Component\Form\Extension\Core\Type\PasswordType; +use Symfony\Component\Form\Extension\Core\Type\RepeatedType; +use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\Security\Core\Validator\Constraints\UserPassword; use Symfony\Component\Validator\Constraints; @@ -12,10 +15,10 @@ class ChangePasswordType extends AbstractType public function buildForm(FormBuilderInterface $builder, array $options) { $builder - ->add('old_password', 'password', array( + ->add('old_password', PasswordType::class, array( 'constraints' => new UserPassword(array('message' => 'Wrong value for your current password')), )) - ->add('new_password', 'repeated', array( + ->add('new_password', RepeatedType::class, array( 'type' => 'password', 'invalid_message' => 'The password fields must match.', 'required' => true, @@ -29,11 +32,11 @@ class ChangePasswordType extends AbstractType new Constraints\NotBlank(), ), )) - ->add('save', 'submit') + ->add('save', SubmitType::class) ; } - public function getName() + public function getBlockPrefix() { return 'change_passwd'; } diff --git a/src/Wallabag/CoreBundle/Form/Type/ConfigType.php b/src/Wallabag/CoreBundle/Form/Type/ConfigType.php index 1f0ad89df..88082a040 100644 --- a/src/Wallabag/CoreBundle/Form/Type/ConfigType.php +++ b/src/Wallabag/CoreBundle/Form/Type/ConfigType.php @@ -3,6 +3,8 @@ namespace Wallabag\CoreBundle\Form\Type; use Symfony\Component\Form\AbstractType; +use Symfony\Component\Form\Extension\Core\Type\ChoiceType; +use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; @@ -28,15 +30,15 @@ class ConfigType extends AbstractType public function buildForm(FormBuilderInterface $builder, array $options) { $builder - ->add('theme', 'choice', array( + ->add('theme', ChoiceType::class, array( 'choices' => array_flip($this->themes), 'choices_as_values' => true, )) ->add('items_per_page') - ->add('language', 'choice', array( + ->add('language', ChoiceType::class, array( 'choices' => $this->languages, )) - ->add('save', 'submit') + ->add('save', SubmitType::class) ; } @@ -47,7 +49,7 @@ class ConfigType extends AbstractType )); } - public function getName() + public function getBlockPrefix() { return 'config'; } diff --git a/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php b/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php index 0fa4b71f4..0cb298818 100644 --- a/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php +++ b/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php @@ -3,6 +3,9 @@ namespace Wallabag\CoreBundle\Form\Type; use Symfony\Component\Form\AbstractType; +use Symfony\Component\Form\Extension\Core\Type\CheckboxType; +use Symfony\Component\Form\Extension\Core\Type\SubmitType; +use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; @@ -11,14 +14,14 @@ class EditEntryType extends AbstractType public function buildForm(FormBuilderInterface $builder, array $options) { $builder - ->add('title', 'text', array('required' => true)) - ->add('is_public', 'checkbox', array('required' => false)) + ->add('title', TextType::class, array('required' => true)) + ->add('is_public', CheckboxType::class, array('required' => false)) // @todo: add autocomplete // ->add('tags', 'entity', array( // 'class' => 'Wallabag\CoreBundle\Entity\Tag', // 'choice_translation_domain' => true, // )) - ->add('save', 'submit') + ->add('save', SubmitType::class) ; } @@ -29,7 +32,7 @@ class EditEntryType extends AbstractType )); } - public function getName() + public function getBlockPrefix() { return 'entry'; } diff --git a/src/Wallabag/CoreBundle/Form/Type/NewEntryType.php b/src/Wallabag/CoreBundle/Form/Type/NewEntryType.php index cb96d11a2..fbce13f1f 100644 --- a/src/Wallabag/CoreBundle/Form/Type/NewEntryType.php +++ b/src/Wallabag/CoreBundle/Form/Type/NewEntryType.php @@ -3,6 +3,8 @@ namespace Wallabag\CoreBundle\Form\Type; use Symfony\Component\Form\AbstractType; +use Symfony\Component\Form\Extension\Core\Type\SubmitType; +use Symfony\Component\Form\Extension\Core\Type\UrlType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; @@ -11,8 +13,8 @@ class NewEntryType extends AbstractType public function buildForm(FormBuilderInterface $builder, array $options) { $builder - ->add('url', 'url', array('required' => true)) - ->add('save', 'submit') + ->add('url', UrlType::class, array('required' => true)) + ->add('save', SubmitType::class) ; } @@ -23,7 +25,7 @@ class NewEntryType extends AbstractType )); } - public function getName() + public function getBlockPrefix() { return 'entry'; } diff --git a/src/Wallabag/CoreBundle/Form/Type/NewTagType.php b/src/Wallabag/CoreBundle/Form/Type/NewTagType.php index 8e4ab649b..0f5590311 100644 --- a/src/Wallabag/CoreBundle/Form/Type/NewTagType.php +++ b/src/Wallabag/CoreBundle/Form/Type/NewTagType.php @@ -3,6 +3,8 @@ namespace Wallabag\CoreBundle\Form\Type; use Symfony\Component\Form\AbstractType; +use Symfony\Component\Form\Extension\Core\Type\SubmitType; +use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; @@ -11,8 +13,8 @@ class NewTagType extends AbstractType public function buildForm(FormBuilderInterface $builder, array $options) { $builder - ->add('label', 'text', array('required' => true)) - ->add('save', 'submit') + ->add('label', TextType::class, array('required' => true)) + ->add('save', SubmitType::class) ; } @@ -23,7 +25,7 @@ class NewTagType extends AbstractType )); } - public function getName() + public function getBlockPrefix() { return 'tag'; } diff --git a/src/Wallabag/CoreBundle/Form/Type/NewUserType.php b/src/Wallabag/CoreBundle/Form/Type/NewUserType.php index 8aabc8bbb..e6fff9766 100644 --- a/src/Wallabag/CoreBundle/Form/Type/NewUserType.php +++ b/src/Wallabag/CoreBundle/Form/Type/NewUserType.php @@ -3,6 +3,10 @@ namespace Wallabag\CoreBundle\Form\Type; use Symfony\Component\Form\AbstractType; +use Symfony\Component\Form\Extension\Core\Type\EmailType; +use Symfony\Component\Form\Extension\Core\Type\RepeatedType; +use Symfony\Component\Form\Extension\Core\Type\SubmitType; +use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; use Symfony\Component\Validator\Constraints; @@ -12,8 +16,8 @@ class NewUserType extends AbstractType public function buildForm(FormBuilderInterface $builder, array $options) { $builder - ->add('username', 'text', array('required' => true)) - ->add('plainPassword', 'repeated', array( + ->add('username', TextType::class, array('required' => true)) + ->add('plainPassword', RepeatedType::class, array( 'type' => 'password', 'constraints' => array( new Constraints\Length(array( @@ -23,8 +27,8 @@ class NewUserType extends AbstractType new Constraints\NotBlank(), ), )) - ->add('email', 'email') - ->add('save', 'submit') + ->add('email', EmailType::class) + ->add('save', SubmitType::class) ; } @@ -35,7 +39,7 @@ class NewUserType extends AbstractType )); } - public function getName() + public function getBlockPrefix() { return 'new_user'; } diff --git a/src/Wallabag/CoreBundle/Form/Type/RssType.php b/src/Wallabag/CoreBundle/Form/Type/RssType.php index 1f7f4c682..def8782cc 100644 --- a/src/Wallabag/CoreBundle/Form/Type/RssType.php +++ b/src/Wallabag/CoreBundle/Form/Type/RssType.php @@ -3,6 +3,7 @@ namespace Wallabag\CoreBundle\Form\Type; use Symfony\Component\Form\AbstractType; +use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; @@ -12,7 +13,7 @@ class RssType extends AbstractType { $builder ->add('rss_limit') - ->add('save', 'submit') + ->add('save', SubmitType::class) ; } @@ -23,7 +24,7 @@ class RssType extends AbstractType )); } - public function getName() + public function getBlockPrefix() { return 'rss_config'; } diff --git a/src/Wallabag/CoreBundle/Form/Type/TaggingRuleType.php b/src/Wallabag/CoreBundle/Form/Type/TaggingRuleType.php index 428d94b38..296cec9e5 100644 --- a/src/Wallabag/CoreBundle/Form/Type/TaggingRuleType.php +++ b/src/Wallabag/CoreBundle/Form/Type/TaggingRuleType.php @@ -3,6 +3,8 @@ namespace Wallabag\CoreBundle\Form\Type; use Symfony\Component\Form\AbstractType; +use Symfony\Component\Form\Extension\Core\Type\SubmitType; +use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; use Wallabag\CoreBundle\Form\DataTransformer\StringToListTransformer; @@ -12,8 +14,8 @@ class TaggingRuleType extends AbstractType public function buildForm(FormBuilderInterface $builder, array $options) { $builder - ->add('rule', 'text', array('required' => true)) - ->add('save', 'submit') + ->add('rule', TextType::class, array('required' => true)) + ->add('save', SubmitType::class) ; $tagsField = $builder @@ -30,7 +32,7 @@ class TaggingRuleType extends AbstractType )); } - public function getName() + public function getBlockPrefix() { return 'tagging_rule'; } diff --git a/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php b/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php index e06c937da..f52e409ac 100644 --- a/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php +++ b/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php @@ -3,6 +3,10 @@ namespace Wallabag\CoreBundle\Form\Type; use Symfony\Component\Form\AbstractType; +use Symfony\Component\Form\Extension\Core\Type\CheckboxType; +use Symfony\Component\Form\Extension\Core\Type\EmailType; +use Symfony\Component\Form\Extension\Core\Type\SubmitType; +use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; @@ -11,10 +15,10 @@ class UserInformationType extends AbstractType public function buildForm(FormBuilderInterface $builder, array $options) { $builder - ->add('name', 'text') - ->add('email', 'email') - ->add('twoFactorAuthentication', 'checkbox', array('required' => false)) - ->add('save', 'submit') + ->add('name', TextType::class) + ->add('email', EmailType::class) + ->add('twoFactorAuthentication', CheckboxType::class, array('required' => false)) + ->add('save', SubmitType::class) ->remove('username') ->remove('plainPassword') ; @@ -32,7 +36,7 @@ class UserInformationType extends AbstractType )); } - public function getName() + public function getBlockPrefix() { return 'update_user'; } diff --git a/src/Wallabag/CoreBundle/Helper/EntriesExport.php b/src/Wallabag/CoreBundle/Helper/EntriesExport.php index d6a4d094a..31a80d6e3 100644 --- a/src/Wallabag/CoreBundle/Helper/EntriesExport.php +++ b/src/Wallabag/CoreBundle/Helper/EntriesExport.php @@ -2,12 +2,12 @@ namespace Wallabag\CoreBundle\Helper; +use JMS\Serializer; +use JMS\Serializer\SerializationContext; +use JMS\Serializer\SerializerBuilder; use PHPePub\Core\EPub; use PHPePub\Core\Structure\OPF\DublinCore; use Symfony\Component\HttpFoundation\Response; -use JMS\Serializer; -use JMS\Serializer\SerializerBuilder; -use JMS\Serializer\SerializationContext; /** * This class doesn't have unit test BUT it's fully covered by a functional test with ExportControllerTest. diff --git a/src/Wallabag/CoreBundle/ParamConverter/UsernameRssTokenConverter.php b/src/Wallabag/CoreBundle/ParamConverter/UsernameRssTokenConverter.php index f7faa2c13..6ea2a4f3a 100644 --- a/src/Wallabag/CoreBundle/ParamConverter/UsernameRssTokenConverter.php +++ b/src/Wallabag/CoreBundle/ParamConverter/UsernameRssTokenConverter.php @@ -2,9 +2,9 @@ namespace Wallabag\CoreBundle\ParamConverter; -use Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterInterface; use Doctrine\Common\Persistence\ManagerRegistry; use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; +use Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Wallabag\UserBundle\Entity\User; diff --git a/src/Wallabag/CoreBundle/Resources/config/services.yml b/src/Wallabag/CoreBundle/Resources/config/services.yml index 96b1c9313..80f737f8a 100644 --- a/src/Wallabag/CoreBundle/Resources/config/services.yml +++ b/src/Wallabag/CoreBundle/Resources/config/services.yml @@ -2,7 +2,7 @@ services: wallabag_core.helper.detect_active_theme: class: Wallabag\CoreBundle\Helper\DetectActiveTheme arguments: - - @security.token_storage + - "@security.token_storage" - %theme% # default theme from parameters.yml # custom form type @@ -22,7 +22,7 @@ services: wallabag_core.form.type.forgot_password: class: Wallabag\CoreBundle\Form\Type\ForgotPasswordType arguments: - - @doctrine + - "@doctrine" tags: - { name: form.type, alias: forgot_password } @@ -31,7 +31,7 @@ services: tags: - { name: request.param_converter, converter: username_rsstoken_converter } arguments: - - @doctrine + - "@doctrine" wallabag_core.table_prefix_subscriber: class: Wallabag\CoreBundle\Subscriber\TablePrefixSubscriber @@ -45,23 +45,23 @@ services: arguments: - { error_message: false } calls: - - [ setLogger, [ @logger ] ] + - [ setLogger, [ "@logger" ] ] tags: - { name: monolog.logger, channel: graby } wallabag_core.content_proxy: class: Wallabag\CoreBundle\Helper\ContentProxy arguments: - - @wallabag_core.graby - - @wallabag_core.rule_based_tagger - - @logger + - "@wallabag_core.graby" + - "@wallabag_core.rule_based_tagger" + - "@logger" wallabag_core.rule_based_tagger: class: Wallabag\CoreBundle\Helper\RuleBasedTagger arguments: - - @rulerz - - @wallabag_core.tag_repository - - @wallabag_core.entry_repository + - "@rulerz" + - "@wallabag_core.tag_repository" + - "@wallabag_core.entry_repository" # repository as a service wallabag_core.entry_repository: @@ -79,7 +79,7 @@ services: wallabag_core.registration_confirmed: class: Wallabag\CoreBundle\EventListener\RegistrationConfirmedListener arguments: - - @doctrine.orm.entity_manager + - "@doctrine.orm.entity_manager" - %theme% - %items_on_page% - %rss_limit% diff --git a/src/Wallabag/CoreBundle/Subscriber/TablePrefixSubscriber.php b/src/Wallabag/CoreBundle/Subscriber/TablePrefixSubscriber.php index 0019eead2..9a4b16ee6 100644 --- a/src/Wallabag/CoreBundle/Subscriber/TablePrefixSubscriber.php +++ b/src/Wallabag/CoreBundle/Subscriber/TablePrefixSubscriber.php @@ -2,8 +2,8 @@ namespace Wallabag\CoreBundle\Subscriber; -use Doctrine\ORM\Event\LoadClassMetadataEventArgs; use Doctrine\Common\EventSubscriber; +use Doctrine\ORM\Event\LoadClassMetadataEventArgs; use Doctrine\ORM\Mapping\ClassMetadataInfo; /** diff --git a/src/Wallabag/CoreBundle/Tests/Command/InstallCommandTest.php b/src/Wallabag/CoreBundle/Tests/Command/InstallCommandTest.php index c93460406..7d75e2b7b 100644 --- a/src/Wallabag/CoreBundle/Tests/Command/InstallCommandTest.php +++ b/src/Wallabag/CoreBundle/Tests/Command/InstallCommandTest.php @@ -2,15 +2,15 @@ namespace Wallabag\CoreBundle\Tests\Command; -use Wallabag\CoreBundle\Tests\WallabagCoreTestCase; -use Wallabag\CoreBundle\Command\InstallCommand; -use Wallabag\CoreBundle\Tests\Mock\InstallCommandMock; +use Doctrine\Bundle\DoctrineBundle\Command\CreateDatabaseDoctrineCommand; +use Doctrine\Bundle\DoctrineBundle\Command\DropDatabaseDoctrineCommand; use Symfony\Bundle\FrameworkBundle\Console\Application; -use Symfony\Component\Console\Tester\CommandTester; use Symfony\Component\Console\Input\ArrayInput; use Symfony\Component\Console\Output\NullOutput; -use Doctrine\Bundle\DoctrineBundle\Command\DropDatabaseDoctrineCommand; -use Doctrine\Bundle\DoctrineBundle\Command\CreateDatabaseDoctrineCommand; +use Symfony\Component\Console\Tester\CommandTester; +use Wallabag\CoreBundle\Command\InstallCommand; +use Wallabag\CoreBundle\Tests\Mock\InstallCommandMock; +use Wallabag\CoreBundle\Tests\WallabagCoreTestCase; class InstallCommandTest extends WallabagCoreTestCase { diff --git a/src/Wallabag/CoreBundle/Tests/EventListener/LocaleListenerTest.php b/src/Wallabag/CoreBundle/Tests/EventListener/LocaleListenerTest.php index d89bee047..b4c022d53 100644 --- a/src/Wallabag/CoreBundle/Tests/EventListener/LocaleListenerTest.php +++ b/src/Wallabag/CoreBundle/Tests/EventListener/LocaleListenerTest.php @@ -4,11 +4,11 @@ namespace Wallabag\CoreBundle\Tests\EventListener; use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\HttpKernel\KernelEvents; +use Symfony\Component\HttpFoundation\Session\Session; +use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage; use Symfony\Component\HttpKernel\Event\GetResponseEvent; use Symfony\Component\HttpKernel\HttpKernelInterface; -use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage; -use Symfony\Component\HttpFoundation\Session\Session; +use Symfony\Component\HttpKernel\KernelEvents; use Wallabag\CoreBundle\EventListener\LocaleListener; class LocaleListenerTest extends \PHPUnit_Framework_TestCase diff --git a/src/Wallabag/CoreBundle/Tests/EventListener/RegistrationConfirmedListenerTest.php b/src/Wallabag/CoreBundle/Tests/EventListener/RegistrationConfirmedListenerTest.php index 31283399d..7039dc619 100644 --- a/src/Wallabag/CoreBundle/Tests/EventListener/RegistrationConfirmedListenerTest.php +++ b/src/Wallabag/CoreBundle/Tests/EventListener/RegistrationConfirmedListenerTest.php @@ -2,13 +2,13 @@ namespace Wallabag\CoreBundle\Tests\EventListener; +use FOS\UserBundle\Event\FilterUserResponseEvent; +use FOS\UserBundle\FOSUserEvents; use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use FOS\UserBundle\FOSUserEvents; -use FOS\UserBundle\Event\FilterUserResponseEvent; -use Wallabag\CoreBundle\EventListener\RegistrationConfirmedListener; use Wallabag\CoreBundle\Entity\Config; +use Wallabag\CoreBundle\EventListener\RegistrationConfirmedListener; use Wallabag\UserBundle\Entity\User; class RegistrationConfirmedListenerTest extends \PHPUnit_Framework_TestCase diff --git a/src/Wallabag/CoreBundle/Tests/EventListener/UserLocaleListenerTest.php b/src/Wallabag/CoreBundle/Tests/EventListener/UserLocaleListenerTest.php index 80ddb4572..d9ffe30ef 100644 --- a/src/Wallabag/CoreBundle/Tests/EventListener/UserLocaleListenerTest.php +++ b/src/Wallabag/CoreBundle/Tests/EventListener/UserLocaleListenerTest.php @@ -3,12 +3,12 @@ namespace Wallabag\CoreBundle\Tests\EventListener; use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage; use Symfony\Component\HttpFoundation\Session\Session; -use Symfony\Component\Security\Http\Event\InteractiveLoginEvent; +use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage; use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken; -use Wallabag\CoreBundle\EventListener\UserLocaleListener; +use Symfony\Component\Security\Http\Event\InteractiveLoginEvent; use Wallabag\CoreBundle\Entity\Config; +use Wallabag\CoreBundle\EventListener\UserLocaleListener; use Wallabag\UserBundle\Entity\User; class UserLocaleListenerTest extends \PHPUnit_Framework_TestCase diff --git a/src/Wallabag/CoreBundle/Tests/Helper/ContentProxyTest.php b/src/Wallabag/CoreBundle/Tests/Helper/ContentProxyTest.php index ac518dbb1..d29984e97 100644 --- a/src/Wallabag/CoreBundle/Tests/Helper/ContentProxyTest.php +++ b/src/Wallabag/CoreBundle/Tests/Helper/ContentProxyTest.php @@ -4,8 +4,8 @@ namespace Wallabag\CoreBundle\Tests\Helper; use Psr\Log\NullLogger; use Wallabag\CoreBundle\Entity\Entry; -use Wallabag\UserBundle\Entity\User; use Wallabag\CoreBundle\Helper\ContentProxy; +use Wallabag\UserBundle\Entity\User; class ContentProxyTest extends \PHPUnit_Framework_TestCase { diff --git a/src/Wallabag/CoreBundle/Tests/Helper/RuleBasedTaggerTest.php b/src/Wallabag/CoreBundle/Tests/Helper/RuleBasedTaggerTest.php index dee17d657..c43c62c3b 100644 --- a/src/Wallabag/CoreBundle/Tests/Helper/RuleBasedTaggerTest.php +++ b/src/Wallabag/CoreBundle/Tests/Helper/RuleBasedTaggerTest.php @@ -6,8 +6,8 @@ use Wallabag\CoreBundle\Entity\Config; use Wallabag\CoreBundle\Entity\Entry; use Wallabag\CoreBundle\Entity\Tag; use Wallabag\CoreBundle\Entity\TaggingRule; -use Wallabag\UserBundle\Entity\User; use Wallabag\CoreBundle\Helper\RuleBasedTagger; +use Wallabag\UserBundle\Entity\User; class RuleBasedTaggerTest extends \PHPUnit_Framework_TestCase { diff --git a/src/Wallabag/CoreBundle/Tests/ParamConverter/UsernameRssTokenConverterTest.php b/src/Wallabag/CoreBundle/Tests/ParamConverter/UsernameRssTokenConverterTest.php index 1c9a4ad7c..b95be1331 100644 --- a/src/Wallabag/CoreBundle/Tests/ParamConverter/UsernameRssTokenConverterTest.php +++ b/src/Wallabag/CoreBundle/Tests/ParamConverter/UsernameRssTokenConverterTest.php @@ -2,9 +2,9 @@ namespace Wallabag\CoreBundle\Tests\Command; -use Wallabag\CoreBundle\ParamConverter\UsernameRssTokenConverter; use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; use Symfony\Component\HttpFoundation\Request; +use Wallabag\CoreBundle\ParamConverter\UsernameRssTokenConverter; use Wallabag\UserBundle\Entity\User; class UsernameRssTokenConverterTest extends \PHPUnit_Framework_TestCase diff --git a/src/Wallabag/CoreBundle/Tests/Subscriber/TablePrefixSubscriberTest.php b/src/Wallabag/CoreBundle/Tests/Subscriber/TablePrefixSubscriberTest.php index a26ff4368..49dbb3168 100644 --- a/src/Wallabag/CoreBundle/Tests/Subscriber/TablePrefixSubscriberTest.php +++ b/src/Wallabag/CoreBundle/Tests/Subscriber/TablePrefixSubscriberTest.php @@ -2,9 +2,9 @@ namespace Wallabag\CoreBundle\Tests\Subscriber; -use Doctrine\ORM\Mapping\ClassMetadata; -use Doctrine\ORM\Event\LoadClassMetadataEventArgs; use Doctrine\Common\EventManager; +use Doctrine\ORM\Event\LoadClassMetadataEventArgs; +use Doctrine\ORM\Mapping\ClassMetadata; use Wallabag\CoreBundle\Subscriber\TablePrefixSubscriber; class TablePrefixSubscriberTest extends \PHPUnit_Framework_TestCase diff --git a/src/Wallabag/UserBundle/Controller/ResettingController.php b/src/Wallabag/UserBundle/Controller/ResettingController.php index 8aa1e2303..62e27d005 100644 --- a/src/Wallabag/UserBundle/Controller/ResettingController.php +++ b/src/Wallabag/UserBundle/Controller/ResettingController.php @@ -2,12 +2,12 @@ namespace Wallabag\UserBundle\Controller; -use FOS\UserBundle\FOSUserEvents; +use FOS\UserBundle\Event\FilterUserResponseEvent; use FOS\UserBundle\Event\FormEvent; use FOS\UserBundle\Event\GetResponseUserEvent; -use FOS\UserBundle\Event\FilterUserResponseEvent; -use Symfony\Component\HttpFoundation\Request; +use FOS\UserBundle\FOSUserEvents; use Symfony\Component\HttpFoundation\RedirectResponse; +use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; class ResettingController extends \FOS\UserBundle\Controller\ResettingController diff --git a/src/Wallabag/UserBundle/Entity/User.php b/src/Wallabag/UserBundle/Entity/User.php index e65284203..4bbb68dca 100644 --- a/src/Wallabag/UserBundle/Entity/User.php +++ b/src/Wallabag/UserBundle/Entity/User.php @@ -6,11 +6,11 @@ use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Mapping as ORM; use Scheb\TwoFactorBundle\Model\Email\TwoFactorInterface; use Scheb\TwoFactorBundle\Model\TrustedComputerInterface; -use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; -use Symfony\Component\Security\Core\User\UserInterface; +use FOS\UserBundle\Model\User as BaseUser; use JMS\Serializer\Annotation\ExclusionPolicy; use JMS\Serializer\Annotation\Expose; -use FOS\UserBundle\Model\User as BaseUser; +use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; +use Symfony\Component\Security\Core\User\UserInterface; use Wallabag\CoreBundle\Entity\Config; use Wallabag\CoreBundle\Entity\Entry; From 5c895a7fd15822856fb407910264c5d95e1e223c Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Tue, 22 Dec 2015 13:00:37 +0100 Subject: [PATCH 06/20] Update bundle & stock file - update stock file (AppKernel, app.php, etc ..) from SymfonyStandard edition) - update bundle to latest release - remove security on profiler --- app/AppCache.php | 2 - app/AppKernel.php | 4 +- app/check.php | 6 +- app/config/config.yml | 5 +- app/config/routing.yml | 2 +- app/config/routing_dev.yml | 6 +- app/config/security.yml | 9 +- app/console | 14 +- composer.json | 31 +-- composer.lock | 225 +++++++++--------- phpunit.xml.dist | 2 +- .../Controller/ConfigController.php | 13 +- .../CoreBundle/Controller/EntryController.php | 6 +- .../CoreBundle/Controller/TagController.php | 2 +- .../CoreBundle/Filter/EntryFilterType.php | 22 +- .../Form/Type/ChangePasswordType.php | 2 +- .../CoreBundle/Form/Type/ConfigType.php | 3 +- .../CoreBundle/Form/Type/NewUserType.php | 3 +- .../CoreBundle/Form/Type/TaggingRuleType.php | 2 +- .../CoreBundle/Resources/config/services.yml | 18 +- .../views/themes/baggy/Config/index.html.twig | 2 +- .../baggy/Registration/register.html.twig | 2 +- .../changePassword_content.html.twig | 2 +- .../Registration/register_content.html.twig | 2 +- .../passwordAlreadyRequested.html.twig | 2 +- .../Resetting/reset_content.html.twig | 2 +- web/app.php | 12 +- web/app_dev.php | 10 +- 28 files changed, 208 insertions(+), 203 deletions(-) diff --git a/app/AppCache.php b/app/AppCache.php index ddb51db05..639ec2cd7 100644 --- a/app/AppCache.php +++ b/app/AppCache.php @@ -1,7 +1,5 @@ getEnvironment(), array('dev', 'test'))) { + if (in_array($this->getEnvironment(), array('dev', 'test'), true)) { $bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle(); $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle(); $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle(); @@ -48,6 +48,6 @@ class AppKernel extends Kernel public function registerContainerConfiguration(LoaderInterface $loader) { - $loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml'); + $loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml'); } } diff --git a/app/check.php b/app/check.php index 60ae0a8b3..282507f70 100644 --- a/app/check.php +++ b/app/check.php @@ -80,7 +80,7 @@ function get_error_message(Requirement $requirement, $lineSize) return; } - $errorMessage = wordwrap($requirement->getTestMessage(), $lineSize - 3, PHP_EOL.' ').PHP_EOL; + $errorMessage = wordwrap($requirement->getTestMessage(), $lineSize - 3, PHP_EOL.' ').PHP_EOL; $errorMessage .= ' > '.wordwrap($requirement->getHelpText(), $lineSize - 5, PHP_EOL.' > ').PHP_EOL; return $errorMessage; @@ -121,8 +121,8 @@ function echo_block($style, $title, $message) echo PHP_EOL.PHP_EOL; echo_style($style, str_repeat(' ', $width).PHP_EOL); - echo_style($style, str_pad(' ['.$title.']', $width, ' ', STR_PAD_RIGHT).PHP_EOL); - echo_style($style, str_pad($message, $width, ' ', STR_PAD_RIGHT).PHP_EOL); + echo_style($style, str_pad(' ['.$title.']', $width, ' ', STR_PAD_RIGHT).PHP_EOL); + echo_style($style, str_pad($message, $width, ' ', STR_PAD_RIGHT).PHP_EOL); echo_style($style, str_repeat(' ', $width).PHP_EOL); } diff --git a/app/config/config.yml b/app/config/config.yml index 8e9369c22..5bc16dd9b 100644 --- a/app/config/config.yml +++ b/app/config/config.yml @@ -59,9 +59,8 @@ twig: warning_message: %warning_message% paypal_url: "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9UBA65LG3FX9Y&lc=gb" flattr_url: "https://flattr.com/thing/1265480" - form: - resources: - - LexikFormFilterBundle:Form:form_div_layout.html.twig + form_themes: + - "LexikFormFilterBundle:Form:form_div_layout.html.twig" # Assetic Configuration assetic: diff --git a/app/config/routing.yml b/app/config/routing.yml index 1ca2f677b..84b98d232 100644 --- a/app/config/routing.yml +++ b/app/config/routing.yml @@ -8,7 +8,7 @@ wallabag_api: prefix: / app: - resource: @WallabagCoreBundle/Controller/ + resource: "@WallabagCoreBundle/Controller/" type: annotation doc-api: diff --git a/app/config/routing_dev.yml b/app/config/routing_dev.yml index 1a236e286..404f6a3bc 100644 --- a/app/config/routing_dev.yml +++ b/app/config/routing_dev.yml @@ -6,13 +6,9 @@ _profiler: resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml" prefix: /_profiler -_configurator: - resource: "@SensioDistributionBundle/Resources/config/routing/webconfigurator.xml" - prefix: /_configurator - _errors: resource: "@TwigBundle/Resources/config/routing/errors.xml" prefix: /_error _main: - resource: routing.yml \ No newline at end of file + resource: routing.yml diff --git a/app/config/security.yml b/app/config/security.yml index 576cfd25d..a99a7d80d 100644 --- a/app/config/security.yml +++ b/app/config/security.yml @@ -15,6 +15,11 @@ security: # the main part of the security, where you can set up firewalls # for specific sections of your app firewalls: + # disables authentication for assets and the profiler, adapt it according to your needs + dev: + pattern: ^/(_(profiler|wdt)|css|images|js)/ + security: false + oauth_token: pattern: ^/oauth/v2/token security: false @@ -33,11 +38,11 @@ security: pattern: ^/ form_login: provider: fos_userbundle - csrf_provider: security.csrf.token_manager + csrf_token_generator: security.csrf.token_manager anonymous: true remember_me: - key: "%secret%" + secret: "%secret%" lifetime: 31536000 path: / domain: ~ diff --git a/app/console b/app/console index fa6a36e24..3b4c367c9 100755 --- a/app/console +++ b/app/console @@ -1,18 +1,20 @@ #!/usr/bin/env php getParameterOption(array('--env', '-e'), getenv('SYMFONY_ENV') ?: 'dev'); diff --git a/composer.json b/composer.json index cce267027..b9591aa32 100644 --- a/composer.json +++ b/composer.json @@ -30,26 +30,27 @@ "require": { "php": ">=5.5.0", "symfony/symfony": "~2.8", - "doctrine/orm": "~2.3", - "doctrine/doctrine-bundle": "~1.5", + "doctrine/orm": "^2.5", + "doctrine/doctrine-bundle": "^1.6", + "doctrine/doctrine-cache-bundle": "^1.2", "twig/extensions": "~1.0", "symfony/assetic-bundle": "~2.3", - "symfony/swiftmailer-bundle": "~2.3", - "symfony/monolog-bundle": "~2.4", - "sensio/distribution-bundle": "~3.0.12", - "sensio/framework-extra-bundle": "~3.0", - "incenteev/composer-parameter-handler": "~2.0", + "symfony/swiftmailer-bundle": "^2.3", + "symfony/monolog-bundle": "^2.8", + "sensio/distribution-bundle": "^5.0", + "sensio/framework-extra-bundle": "^3.0.2", + "incenteev/composer-parameter-handler": "^2.0", "nelmio/cors-bundle": "~1.4.0", "friendsofsymfony/rest-bundle": "~1.4", - "jms/serializer-bundle": "~0.13", + "jms/serializer-bundle": "~1.0", "nelmio/api-doc-bundle": "~2.7", "ezyang/htmlpurifier": "~4.6", "mgargano/simplehtmldom": "~1.5", "tecnickcom/tcpdf": "~6.2", "simplepie/simplepie": "~1.3.1", - "willdurand/hateoas-bundle": "~0.5.0", + "willdurand/hateoas-bundle": "~1.0", "htmlawed/htmlawed": "~1.1.19", - "liip/theme-bundle": "~1.1.3", + "liip/theme-bundle": "~1.1", "pagerfanta/pagerfanta": "~1.0.3", "lexik/form-filter-bundle": "~4.0", "j0k3r/graby": "~1.0", @@ -64,8 +65,8 @@ "doctrine/doctrine-migrations-bundle": "^1.0" }, "require-dev": { - "doctrine/doctrine-fixtures-bundle": "~2.2.0", - "sensio/generator-bundle": "~2.5", + "doctrine/doctrine-fixtures-bundle": "~2.2", + "sensio/generator-bundle": "~3.0", "phpunit/phpunit": "~4.4", "symfony/phpunit-bridge": "~2.7" }, @@ -78,7 +79,8 @@ "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", - "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile" + "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile", + "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget" ], "post-install-cmd": [ "@post-cmd" @@ -102,7 +104,8 @@ } }, "autoload": { - "psr-0": { "": "src/" } + "psr-0": { "": "src/" }, + "classmap": [ "app/AppKernel.php", "app/AppCache.php" ] }, "config": { "bin-dir": "bin" diff --git a/composer.lock b/composer.lock index 8db3f9485..d5c9d6031 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,8 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "3cfde4d3168704b0058a99413c69fc5a", - "content-hash": "6916bff6c2a88f268cd6ca75aebbf4c6", + "hash": "f9037d0e31ddc387133f603a5f1a2c8c", + "content-hash": "12c1a8f82eb6129b288629c4b56a448d", "packages": [ { "name": "behat/transliterator", @@ -2169,16 +2169,16 @@ }, { "name": "hoa/stream", - "version": "0.15.10.26", + "version": "0.15.08.28", "source": { "type": "git", "url": "https://github.com/hoaproject/Stream.git", - "reference": "011ab91d942f1d7096deade4c8a10fe57d51c5b3" + "reference": "cbd0f4749e447f4d31001e7c898f5e794c5861cb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/hoaproject/Stream/zipball/011ab91d942f1d7096deade4c8a10fe57d51c5b3", - "reference": "011ab91d942f1d7096deade4c8a10fe57d51c5b3", + "url": "https://api.github.com/repos/hoaproject/Stream/zipball/cbd0f4749e447f4d31001e7c898f5e794c5861cb", + "reference": "cbd0f4749e447f4d31001e7c898f5e794c5861cb", "shasum": "" }, "require": { @@ -2223,7 +2223,7 @@ "stream", "wrapper" ], - "time": "2015-10-22 06:30:43" + "time": "2015-08-28 07:31:43" }, { "name": "hoa/ustring", @@ -2823,36 +2823,41 @@ }, { "name": "jms/serializer", - "version": "0.16.0", + "version": "1.1.0", "source": { "type": "git", "url": "https://github.com/schmittjoh/serializer.git", - "reference": "c8a171357ca92b6706e395c757f334902d430ea9" + "reference": "fe13a1f993ea3456e195b7820692f2eb2b6bbb48" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/schmittjoh/serializer/zipball/c8a171357ca92b6706e395c757f334902d430ea9", - "reference": "c8a171357ca92b6706e395c757f334902d430ea9", + "url": "https://api.github.com/repos/schmittjoh/serializer/zipball/fe13a1f993ea3456e195b7820692f2eb2b6bbb48", + "reference": "fe13a1f993ea3456e195b7820692f2eb2b6bbb48", "shasum": "" }, "require": { "doctrine/annotations": "1.*", + "doctrine/instantiator": "~1.0.3", "jms/metadata": "~1.1", "jms/parser-lib": "1.*", - "php": ">=5.3.2", + "php": ">=5.4.0", "phpcollection/phpcollection": "~0.1" }, + "conflict": { + "twig/twig": "<1.12" + }, "require-dev": { "doctrine/orm": "~2.1", "doctrine/phpcr-odm": "~1.0.1", "jackalope/jackalope-doctrine-dbal": "1.0.*", + "phpunit/phpunit": "~4.0", "propel/propel1": "~1.7", "symfony/filesystem": "2.*", "symfony/form": "~2.1", "symfony/translation": "~2.0", "symfony/validator": "~2.0", "symfony/yaml": "2.*", - "twig/twig": ">=1.8,<2.0-dev" + "twig/twig": "~1.12|~2.0" }, "suggest": { "symfony/yaml": "Required if you'd like to serialize data to YAML format." @@ -2860,7 +2865,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "0.15-dev" + "dev-master": "1.1-dev" } }, "autoload": { @@ -2874,10 +2879,8 @@ ], "authors": [ { - "name": "Johannes Schmitt", - "email": "schmittjoh@gmail.com", - "homepage": "https://github.com/schmittjoh", - "role": "Developer of wrapped JMSSerializerBundle" + "name": "Johannes M. Schmitt", + "email": "schmittjoh@gmail.com" } ], "description": "Library for (de-)serializing data of any complexity; supports XML, JSON, and YAML.", @@ -2889,27 +2892,28 @@ "serialization", "xml" ], - "time": "2014-03-18 08:39:00" + "time": "2015-10-27 09:24:41" }, { "name": "jms/serializer-bundle", - "version": "0.13.0", + "version": "1.1.0", "target-dir": "JMS/SerializerBundle", "source": { "type": "git", "url": "https://github.com/schmittjoh/JMSSerializerBundle.git", - "reference": "bb15db3e661168f4310fad48b86915ff1ca33795" + "reference": "3e396c980545350c2efb65a50041d2a9f9d6562e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/schmittjoh/JMSSerializerBundle/zipball/bb15db3e661168f4310fad48b86915ff1ca33795", - "reference": "bb15db3e661168f4310fad48b86915ff1ca33795", + "url": "https://api.github.com/repos/schmittjoh/JMSSerializerBundle/zipball/3e396c980545350c2efb65a50041d2a9f9d6562e", + "reference": "3e396c980545350c2efb65a50041d2a9f9d6562e", "shasum": "" }, "require": { - "jms/serializer": "~0.11", - "php": ">=5.3.2", - "symfony/framework-bundle": "~2.1" + "jms/serializer": "^1.0.0", + "php": ">=5.4.0", + "phpoption/phpoption": "^1.1.0", + "symfony/framework-bundle": "~2.3|~3.0" }, "require-dev": { "doctrine/doctrine-bundle": "*", @@ -2920,6 +2924,7 @@ "symfony/finder": "*", "symfony/form": "*", "symfony/process": "*", + "symfony/stopwatch": "*", "symfony/twig-bundle": "*", "symfony/validator": "*", "symfony/yaml": "*" @@ -2930,7 +2935,7 @@ "type": "symfony-bundle", "extra": { "branch-alias": { - "dev-master": "0.13-dev" + "dev-master": "1.1-dev" } }, "autoload": { @@ -2944,10 +2949,8 @@ ], "authors": [ { - "name": "Johannes Schmitt", - "email": "schmittjoh@gmail.com", - "homepage": "https://github.com/schmittjoh", - "role": "Developer of wrapped JMSSerializerBundle" + "name": "Johannes M. Schmitt", + "email": "schmittjoh@gmail.com" } ], "description": "Allows you to easily serialize, and deserialize data of any complexity", @@ -2959,7 +2962,7 @@ "serialization", "xml" ], - "time": "2013-12-05 14:36:11" + "time": "2015-11-10 12:26:42" }, { "name": "kphoen/rulerz", @@ -3219,36 +3222,40 @@ }, { "name": "liip/theme-bundle", - "version": "1.1.3", - "target-dir": "Liip/ThemeBundle", + "version": "1.4.0", "source": { "type": "git", "url": "https://github.com/liip/LiipThemeBundle.git", - "reference": "a594cc6deda293034b8fd7795c9950f02fc8251b" + "reference": "ae4f0f1b045689bed9150d5bd32d2f7f2f98b905" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/liip/LiipThemeBundle/zipball/a594cc6deda293034b8fd7795c9950f02fc8251b", - "reference": "a594cc6deda293034b8fd7795c9950f02fc8251b", + "url": "https://api.github.com/repos/liip/LiipThemeBundle/zipball/ae4f0f1b045689bed9150d5bd32d2f7f2f98b905", + "reference": "ae4f0f1b045689bed9150d5bd32d2f7f2f98b905", "shasum": "" }, "require": { - "php": ">=5.3.3", - "symfony/framework-bundle": "~2.0" + "php": "^5.3.9|^7.0", + "psr/log": "~1.0", + "symfony/framework-bundle": "~2.3|~3.0" }, "require-dev": { - "symfony/console": "~2.0", - "symfony/expression-language": "~2.6" + "kriswallsmith/assetic": "~1.1", + "phpunit/php-code-coverage": "~2.2@stable", + "phpunit/phpunit": "~4.5@stable", + "symfony/console": "~2.3|~3.0", + "symfony/expression-language": "~2.6|~3.0", + "twig/twig": "~1.4|~2.0@dev" }, "type": "symfony-bundle", "extra": { "branch-alias": { - "dev-master": "1.1-dev" + "dev-master": "1.4-dev" } }, "autoload": { - "psr-0": { - "Liip\\ThemeBundle": "" + "psr-4": { + "Liip\\ThemeBundle\\": "" } }, "notification-url": "https://packagist.org/downloads/", @@ -3270,7 +3277,7 @@ "themes", "theming" ], - "time": "2015-02-02 15:55:54" + "time": "2015-12-05 09:33:29" }, { "name": "mgargano/simplehtmldom", @@ -4029,45 +4036,37 @@ }, { "name": "sensio/distribution-bundle", - "version": "v3.0.34", - "target-dir": "Sensio/Bundle/DistributionBundle", + "version": "v5.0.3", "source": { "type": "git", "url": "https://github.com/sensiolabs/SensioDistributionBundle.git", - "reference": "587f3cd08bf8856cfc888b255f34f18b85930657" + "reference": "419c1824af940e2be0f833aca2327e1181a6b503" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sensiolabs/SensioDistributionBundle/zipball/587f3cd08bf8856cfc888b255f34f18b85930657", - "reference": "587f3cd08bf8856cfc888b255f34f18b85930657", + "url": "https://api.github.com/repos/sensiolabs/SensioDistributionBundle/zipball/419c1824af940e2be0f833aca2327e1181a6b503", + "reference": "419c1824af940e2be0f833aca2327e1181a6b503", "shasum": "" }, "require": { - "php": ">=5.3.3", + "php": ">=5.3.9", "sensiolabs/security-checker": "~3.0", - "symfony/class-loader": "~2.2", - "symfony/framework-bundle": "~2.3", - "symfony/process": "~2.2" - }, - "require-dev": { - "symfony/form": "~2.2", - "symfony/validator": "~2.2", - "symfony/yaml": "~2.2" - }, - "suggest": { - "symfony/form": "If you want to use the configurator", - "symfony/validator": "If you want to use the configurator", - "symfony/yaml": "If you want to use the configurator" + "symfony/class-loader": "~2.3|~3.0", + "symfony/config": "~2.3|~3.0", + "symfony/dependency-injection": "~2.3|~3.0", + "symfony/filesystem": "~2.3|~3.0", + "symfony/http-kernel": "~2.3|~3.0", + "symfony/process": "~2.3|~3.0" }, "type": "symfony-bundle", "extra": { "branch-alias": { - "dev-master": "3.0.x-dev" + "dev-master": "5.0.x-dev" } }, "autoload": { - "psr-0": { - "Sensio\\Bundle\\DistributionBundle": "" + "psr-4": { + "Sensio\\Bundle\\DistributionBundle\\": "" } }, "notification-url": "https://packagist.org/downloads/", @@ -4085,7 +4084,7 @@ "configuration", "distribution" ], - "time": "2015-11-26 18:10:17" + "time": "2015-12-18 17:44:11" }, { "name": "sensio/framework-extra-bundle", @@ -5443,34 +5442,34 @@ }, { "name": "willdurand/hateoas", - "version": "v2.6.0", + "version": "v2.9.0", "source": { "type": "git", "url": "https://github.com/willdurand/Hateoas.git", - "reference": "fc0869381d6934e5d430084154584761297caa6c" + "reference": "6e6ee945100bef3534c9276f0cf1c70d0115670c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/willdurand/Hateoas/zipball/fc0869381d6934e5d430084154584761297caa6c", - "reference": "fc0869381d6934e5d430084154584761297caa6c", + "url": "https://api.github.com/repos/willdurand/Hateoas/zipball/6e6ee945100bef3534c9276f0cf1c70d0115670c", + "reference": "6e6ee945100bef3534c9276f0cf1c70d0115670c", "shasum": "" }, "require": { "doctrine/annotations": "~1.0", "doctrine/common": "~2.0", "jms/metadata": "~1.1", - "jms/serializer": "~0.13", - "php": ">=5.3", - "symfony/expression-language": "~2.4" + "jms/serializer": "~1.0", + "php": ">=5.4", + "symfony/expression-language": "~2.4 || ~3.0" }, "require-dev": { "atoum/atoum": "*@dev", "hautelook/frankenstein": "~0.1", "pagerfanta/pagerfanta": "~1.0", "phpunit/phpunit": "~3.7", - "symfony/dependency-injection": "~2.0", - "symfony/routing": "~2.0", - "symfony/yaml": "~2.0", + "symfony/dependency-injection": "~2.0 || ~3.0", + "symfony/routing": "~2.0 || ~3.0", + "symfony/yaml": "~2.0 || ~3.0", "twig/twig": "~1.12" }, "suggest": { @@ -5481,7 +5480,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.6-dev" + "dev-master": "2.9-dev" } }, "autoload": { @@ -5504,36 +5503,36 @@ } ], "description": "A PHP library to support implementing representations for HATEOAS REST web services", - "time": "2015-05-21 21:57:34" + "time": "2015-12-04 15:31:02" }, { "name": "willdurand/hateoas-bundle", - "version": "0.5.0", + "version": "1.1.0", "target-dir": "Bazinga/Bundle/HateoasBundle", "source": { "type": "git", "url": "https://github.com/willdurand/BazingaHateoasBundle.git", - "reference": "3c86e8080e8a229365a0ce91818da6fe6562376b" + "reference": "205a5a16899716f33edfb7a5afc4d451d0d2d0b2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/willdurand/BazingaHateoasBundle/zipball/3c86e8080e8a229365a0ce91818da6fe6562376b", - "reference": "3c86e8080e8a229365a0ce91818da6fe6562376b", + "url": "https://api.github.com/repos/willdurand/BazingaHateoasBundle/zipball/205a5a16899716f33edfb7a5afc4d451d0d2d0b2", + "reference": "205a5a16899716f33edfb7a5afc4d451d0d2d0b2", "shasum": "" }, "require": { - "jms/serializer-bundle": "~0.13", - "symfony/framework-bundle": "~2.2", - "willdurand/hateoas": "~2.0" + "jms/serializer-bundle": "~1.0", + "symfony/framework-bundle": "~2.2 || ~3.0", + "willdurand/hateoas": "~2.9" }, "require-dev": { - "symfony/expression-language": "~2.4", + "symfony/expression-language": "~2.4 || ~3.0", "twig/twig": "~1.12" }, "type": "symfony-bundle", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "1.2-dev" } }, "autoload": { @@ -5556,7 +5555,7 @@ "HATEOAS", "rest" ], - "time": "2015-02-19 16:27:51" + "time": "2015-12-07 08:25:05" }, { "name": "willdurand/jsonp-callback-validator", @@ -5708,23 +5707,23 @@ }, { "name": "doctrine/doctrine-fixtures-bundle", - "version": "v2.2.1", + "version": "2.3.0", "source": { "type": "git", "url": "https://github.com/doctrine/DoctrineFixturesBundle.git", - "reference": "817c2d233fde0fe85cb7e4d25d43fbfcd028aef8" + "reference": "0f1a2f91b349e10f5c343f75ab71d23aace5b029" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/DoctrineFixturesBundle/zipball/817c2d233fde0fe85cb7e4d25d43fbfcd028aef8", - "reference": "817c2d233fde0fe85cb7e4d25d43fbfcd028aef8", + "url": "https://api.github.com/repos/doctrine/DoctrineFixturesBundle/zipball/0f1a2f91b349e10f5c343f75ab71d23aace5b029", + "reference": "0f1a2f91b349e10f5c343f75ab71d23aace5b029", "shasum": "" }, "require": { "doctrine/data-fixtures": "~1.0", "doctrine/doctrine-bundle": "~1.0", "php": ">=5.3.2", - "symfony/doctrine-bridge": "~2.1" + "symfony/doctrine-bridge": "~2.3|~3.0" }, "type": "symfony-bundle", "extra": { @@ -5761,7 +5760,7 @@ "Fixture", "persistence" ], - "time": "2015-08-04 22:43:14" + "time": "2015-11-04 21:23:23" }, { "name": "phpdocumentor/reflection-docblock", @@ -6613,38 +6612,42 @@ }, { "name": "sensio/generator-bundle", - "version": "v2.5.3", - "target-dir": "Sensio/Bundle/GeneratorBundle", + "version": "v3.0.3", "source": { "type": "git", "url": "https://github.com/sensiolabs/SensioGeneratorBundle.git", - "reference": "e50108c2133ee5c9c484555faed50c17a61221d3" + "reference": "525e078ff7d5e9f19b0ef912bb6d6753673b3c66" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/zipball/e50108c2133ee5c9c484555faed50c17a61221d3", - "reference": "e50108c2133ee5c9c484555faed50c17a61221d3", + "url": "https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/zipball/525e078ff7d5e9f19b0ef912bb6d6753673b3c66", + "reference": "525e078ff7d5e9f19b0ef912bb6d6753673b3c66", "shasum": "" }, "require": { - "symfony/console": "~2.5", - "symfony/framework-bundle": "~2.2" + "symfony/console": "~2.7|~3.0", + "symfony/framework-bundle": "~2.7|~3.0", + "symfony/process": "~2.7|~3.0", + "symfony/yaml": "~2.7|~3.0" }, "require-dev": { - "doctrine/orm": "~2.2,>=2.2.3", - "symfony/doctrine-bridge": "~2.2", - "twig/twig": "~1.11" + "doctrine/orm": "~2.4", + "symfony/doctrine-bridge": "~2.7|~3.0", + "twig/twig": "~1.18" }, "type": "symfony-bundle", "extra": { "branch-alias": { - "dev-master": "2.5.x-dev" + "dev-master": "3.0.x-dev" } }, "autoload": { - "psr-0": { - "Sensio\\Bundle\\GeneratorBundle": "" - } + "psr-4": { + "Sensio\\Bundle\\GeneratorBundle\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -6657,7 +6660,7 @@ } ], "description": "This bundle generates code for you", - "time": "2015-03-17 06:36:52" + "time": "2015-12-20 20:01:41" }, { "name": "symfony/phpunit-bridge", diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 5549b8a54..85fa964b8 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -9,7 +9,7 @@ processIsolation="false" stopOnFailure="false" syntaxCheck="false" - bootstrap="app/bootstrap.php.cache" + bootstrap="app/autoload.php" > diff --git a/src/Wallabag/CoreBundle/Controller/ConfigController.php b/src/Wallabag/CoreBundle/Controller/ConfigController.php index f51ccaa48..d0cf91def 100644 --- a/src/Wallabag/CoreBundle/Controller/ConfigController.php +++ b/src/Wallabag/CoreBundle/Controller/ConfigController.php @@ -8,6 +8,7 @@ use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request; use Wallabag\CoreBundle\Entity\Config; use Wallabag\CoreBundle\Entity\TaggingRule; +use Wallabag\CoreBundle\Form\Type\ConfigType; use Wallabag\CoreBundle\Form\Type\ChangePasswordType; use Wallabag\CoreBundle\Form\Type\NewUserType; use Wallabag\CoreBundle\Form\Type\RssType; @@ -31,7 +32,7 @@ class ConfigController extends Controller $user = $this->getUser(); // handle basic config detail (this form is defined as a service) - $configForm = $this->createForm('config', $config, array('action' => $this->generateUrl('config'))); + $configForm = $this->createForm(ConfigType::class, $config, array('action' => $this->generateUrl('config'))); $configForm->handleRequest($request); if ($configForm->isValid()) { @@ -51,7 +52,7 @@ class ConfigController extends Controller } // handle changing password - $pwdForm = $this->createForm(new ChangePasswordType(), null, array('action' => $this->generateUrl('config').'#set4')); + $pwdForm = $this->createForm(ChangePasswordType::class, null, array('action' => $this->generateUrl('config').'#set4')); $pwdForm->handleRequest($request); if ($pwdForm->isValid()) { @@ -67,7 +68,7 @@ class ConfigController extends Controller } // handle changing user information - $userForm = $this->createForm(new UserInformationType(), $user, array( + $userForm = $this->createForm(UserInformationType::class, $user, array( 'validation_groups' => array('Profile'), 'action' => $this->generateUrl('config').'#set3', )); @@ -85,7 +86,7 @@ class ConfigController extends Controller } // handle rss information - $rssForm = $this->createForm(new RssType(), $config, array('action' => $this->generateUrl('config').'#set2')); + $rssForm = $this->createForm(RssType::class, $config, array('action' => $this->generateUrl('config').'#set2')); $rssForm->handleRequest($request); if ($rssForm->isValid()) { @@ -102,7 +103,7 @@ class ConfigController extends Controller // handle tagging rule $taggingRule = new TaggingRule(); - $newTaggingRule = $this->createForm(new TaggingRuleType(), $taggingRule, array('action' => $this->generateUrl('config').'#set5')); + $newTaggingRule = $this->createForm(TaggingRuleType::class, $taggingRule, array('action' => $this->generateUrl('config').'#set5')); $newTaggingRule->handleRequest($request); if ($newTaggingRule->isValid()) { @@ -122,7 +123,7 @@ class ConfigController extends Controller $newUser = $userManager->createUser(); // enable created user by default $newUser->setEnabled(true); - $newUserForm = $this->createForm(new NewUserType(), $newUser, array( + $newUserForm = $this->createForm(NewUserType::class, $newUser, array( 'validation_groups' => array('Profile'), 'action' => $this->generateUrl('config').'#set5', )); diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php index c1b5a71ba..83e5b57da 100644 --- a/src/Wallabag/CoreBundle/Controller/EntryController.php +++ b/src/Wallabag/CoreBundle/Controller/EntryController.php @@ -43,7 +43,7 @@ class EntryController extends Controller { $entry = new Entry($this->getUser()); - $form = $this->createForm(new NewEntryType(), $entry); + $form = $this->createForm(NewEntryType::class, $entry); $form->handleRequest($request); @@ -117,7 +117,7 @@ class EntryController extends Controller { $this->checkUserAction($entry); - $form = $this->createForm(new EditEntryType(), $entry); + $form = $this->createForm(EditEntryType::class, $entry); $form->handleRequest($request); @@ -234,7 +234,7 @@ class EntryController extends Controller throw new \InvalidArgumentException(sprintf('Type "%s" is not implemented.', $type)); } - $form = $this->get('form.factory')->create(new EntryFilterType($repository, $this->getUser())); + $form = $this->createForm(new EntryFilterType($repository, $this->getUser())); if ($request->query->has($form->getName())) { // manually bind values from the request diff --git a/src/Wallabag/CoreBundle/Controller/TagController.php b/src/Wallabag/CoreBundle/Controller/TagController.php index 682cc6e63..ff4d64a8f 100644 --- a/src/Wallabag/CoreBundle/Controller/TagController.php +++ b/src/Wallabag/CoreBundle/Controller/TagController.php @@ -21,7 +21,7 @@ class TagController extends Controller public function addTagFormAction(Request $request, Entry $entry) { $tag = new Tag(); - $form = $this->createForm(new NewTagType(), $tag); + $form = $this->createForm(NewTagType::class, $tag); $form->handleRequest($request); if ($form->isValid()) { diff --git a/src/Wallabag/CoreBundle/Filter/EntryFilterType.php b/src/Wallabag/CoreBundle/Filter/EntryFilterType.php index e0a1cb31b..4430c971a 100644 --- a/src/Wallabag/CoreBundle/Filter/EntryFilterType.php +++ b/src/Wallabag/CoreBundle/Filter/EntryFilterType.php @@ -4,6 +4,11 @@ namespace Wallabag\CoreBundle\Filter; use Doctrine\ORM\EntityRepository; use Lexik\Bundle\FormFilterBundle\Filter\Query\QueryInterface; +use Lexik\Bundle\FormFilterBundle\Filter\Form\Type\NumberRangeFilterType; +use Lexik\Bundle\FormFilterBundle\Filter\Form\Type\DateRangeFilterType; +use Lexik\Bundle\FormFilterBundle\Filter\Form\Type\TextFilterType; +use Lexik\Bundle\FormFilterBundle\Filter\Form\Type\CheckboxFilterType; +use Lexik\Bundle\FormFilterBundle\Filter\Form\Type\ChoiceFilterType; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; @@ -29,8 +34,8 @@ class EntryFilterType extends AbstractType public function buildForm(FormBuilderInterface $builder, array $options) { $builder - ->add('readingTime', 'filter_number_range') - ->add('createdAt', 'filter_date_range', array( + ->add('readingTime', NumberRangeFilterType::class) + ->add('createdAt', DateRangeFilterType::class, array( 'left_date_options' => array( 'attr' => array( 'placeholder' => 'dd/mm/yyyy', @@ -47,7 +52,7 @@ class EntryFilterType extends AbstractType ), ) ) - ->add('domainName', 'filter_text', array( + ->add('domainName', TextFilterType::class, array( 'apply_filter' => function (QueryInterface $filterQuery, $field, $values) { $value = $values['value']; if (strlen($value) <= 2 || empty($value)) { @@ -58,9 +63,9 @@ class EntryFilterType extends AbstractType return $filterQuery->createCondition($expression); }, )) - ->add('isArchived', 'filter_checkbox') - ->add('isStarred', 'filter_checkbox') - ->add('previewPicture', 'filter_checkbox', array( + ->add('isArchived', CheckboxFilterType::class) + ->add('isStarred', CheckboxFilterType::class) + ->add('previewPicture', CheckboxFilterType::class, array( 'apply_filter' => function (QueryInterface $filterQuery, $field, $values) { if (false === $values['value']) { return; @@ -71,8 +76,9 @@ class EntryFilterType extends AbstractType return $filterQuery->createCondition($expression); }, )) - ->add('language', 'filter_choice', array( - 'choices' => $this->repository->findDistinctLanguageByUser($this->user->getId()), + ->add('language', ChoiceFilterType::class, array( + 'choices' => array_flip($this->repository->findDistinctLanguageByUser($this->user->getId())), + 'choices_as_values' => true, )) ; } diff --git a/src/Wallabag/CoreBundle/Form/Type/ChangePasswordType.php b/src/Wallabag/CoreBundle/Form/Type/ChangePasswordType.php index 615b81690..7d05a5d81 100644 --- a/src/Wallabag/CoreBundle/Form/Type/ChangePasswordType.php +++ b/src/Wallabag/CoreBundle/Form/Type/ChangePasswordType.php @@ -19,7 +19,7 @@ class ChangePasswordType extends AbstractType 'constraints' => new UserPassword(array('message' => 'Wrong value for your current password')), )) ->add('new_password', RepeatedType::class, array( - 'type' => 'password', + 'type' => PasswordType::class, 'invalid_message' => 'The password fields must match.', 'required' => true, 'first_options' => array('label' => 'New password'), diff --git a/src/Wallabag/CoreBundle/Form/Type/ConfigType.php b/src/Wallabag/CoreBundle/Form/Type/ConfigType.php index 88082a040..a139f2df0 100644 --- a/src/Wallabag/CoreBundle/Form/Type/ConfigType.php +++ b/src/Wallabag/CoreBundle/Form/Type/ConfigType.php @@ -36,7 +36,8 @@ class ConfigType extends AbstractType )) ->add('items_per_page') ->add('language', ChoiceType::class, array( - 'choices' => $this->languages, + 'choices' => array_flip($this->languages), + 'choices_as_values' => true, )) ->add('save', SubmitType::class) ; diff --git a/src/Wallabag/CoreBundle/Form/Type/NewUserType.php b/src/Wallabag/CoreBundle/Form/Type/NewUserType.php index e6fff9766..ffbe9ba27 100644 --- a/src/Wallabag/CoreBundle/Form/Type/NewUserType.php +++ b/src/Wallabag/CoreBundle/Form/Type/NewUserType.php @@ -4,6 +4,7 @@ namespace Wallabag\CoreBundle\Form\Type; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\EmailType; +use Symfony\Component\Form\Extension\Core\Type\PasswordType; use Symfony\Component\Form\Extension\Core\Type\RepeatedType; use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\Form\Extension\Core\Type\TextType; @@ -18,7 +19,7 @@ class NewUserType extends AbstractType $builder ->add('username', TextType::class, array('required' => true)) ->add('plainPassword', RepeatedType::class, array( - 'type' => 'password', + 'type' => PasswordType::class, 'constraints' => array( new Constraints\Length(array( 'min' => 8, diff --git a/src/Wallabag/CoreBundle/Form/Type/TaggingRuleType.php b/src/Wallabag/CoreBundle/Form/Type/TaggingRuleType.php index 296cec9e5..5815b8c66 100644 --- a/src/Wallabag/CoreBundle/Form/Type/TaggingRuleType.php +++ b/src/Wallabag/CoreBundle/Form/Type/TaggingRuleType.php @@ -19,7 +19,7 @@ class TaggingRuleType extends AbstractType ; $tagsField = $builder - ->create('tags', 'text') + ->create('tags', TextType::class) ->addModelTransformer(new StringToListTransformer(',')); $builder->add($tagsField); diff --git a/src/Wallabag/CoreBundle/Resources/config/services.yml b/src/Wallabag/CoreBundle/Resources/config/services.yml index 80f737f8a..e8dafc5d3 100644 --- a/src/Wallabag/CoreBundle/Resources/config/services.yml +++ b/src/Wallabag/CoreBundle/Resources/config/services.yml @@ -12,19 +12,7 @@ services: - %liip_theme.themes% - %wallabag_core.languages% tags: - - { name: form.type, alias: config } - - wallabag_core.form.registration: - class: Wallabag\CoreBundle\Form\Type\RegistrationType - tags: - - { name: form.type, alias: wallabag_user_registration } - - wallabag_core.form.type.forgot_password: - class: Wallabag\CoreBundle\Form\Type\ForgotPasswordType - arguments: - - "@doctrine" - tags: - - { name: form.type, alias: forgot_password } + - { name: form.type } wallabag_core.param_converter.username_rsstoken_converter: class: Wallabag\CoreBundle\ParamConverter\UsernameRssTokenConverter @@ -66,13 +54,13 @@ services: # repository as a service wallabag_core.entry_repository: class: Wallabag\CoreBundle\Repository\EntryRepository - factory: [ @doctrine.orm.default_entity_manager, getRepository ] + factory: [ "@doctrine.orm.default_entity_manager", getRepository ] arguments: - WallabagCoreBundle:Entry wallabag_core.tag_repository: class: Wallabag\CoreBundle\Repository\TagRepository - factory: [ @doctrine.orm.default_entity_manager, getRepository ] + factory: [ "@doctrine.orm.default_entity_manager", getRepository ] arguments: - WallabagCoreBundle:Tag diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig index d9850f7a9..6ac6decb9 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig @@ -164,7 +164,7 @@ {% endfor %} -
+ {{ form_start(form.new_tagging_rule) }} {{ form_errors(form.new_tagging_rule) }}
diff --git a/src/Wallabag/UserBundle/Resources/views/themes/baggy/Registration/register.html.twig b/src/Wallabag/UserBundle/Resources/views/themes/baggy/Registration/register.html.twig index e5c1876b9..2713bf452 100644 --- a/src/Wallabag/UserBundle/Resources/views/themes/baggy/Registration/register.html.twig +++ b/src/Wallabag/UserBundle/Resources/views/themes/baggy/Registration/register.html.twig @@ -8,7 +8,7 @@ {% block messages %}{% endblock %} {% block content %} - + {{ form_start(form) }}

{% trans %}create an account{% endtrans %}

{% include "FOSUserBundle:Registration:register_content.html.twig" %} diff --git a/src/Wallabag/UserBundle/Resources/views/themes/material/ChangePassword/changePassword_content.html.twig b/src/Wallabag/UserBundle/Resources/views/themes/material/ChangePassword/changePassword_content.html.twig index e7b7318bf..abb684213 100644 --- a/src/Wallabag/UserBundle/Resources/views/themes/material/ChangePassword/changePassword_content.html.twig +++ b/src/Wallabag/UserBundle/Resources/views/themes/material/ChangePassword/changePassword_content.html.twig @@ -1,6 +1,6 @@ {% trans_default_domain 'FOSUserBundle' %} - +{{ form_start(form, { 'action': path('fos_user_change_password'), 'attr': { 'class': 'fos_user_change_password' } }) }}
{{ form_widget(form) }} diff --git a/src/Wallabag/UserBundle/Resources/views/themes/material/Registration/register_content.html.twig b/src/Wallabag/UserBundle/Resources/views/themes/material/Registration/register_content.html.twig index 865a24aef..e92b515e3 100644 --- a/src/Wallabag/UserBundle/Resources/views/themes/material/Registration/register_content.html.twig +++ b/src/Wallabag/UserBundle/Resources/views/themes/material/Registration/register_content.html.twig @@ -1,6 +1,6 @@ {% trans_default_domain 'FOSUserBundle' %} - +{{ form_start(form, {'method': 'post', 'action': path('fos_user_registration_register'), 'attr': {'class': 'fos_user_registration_register'}}) }}
diff --git a/src/Wallabag/UserBundle/Resources/views/themes/material/Resetting/passwordAlreadyRequested.html.twig b/src/Wallabag/UserBundle/Resources/views/themes/material/Resetting/passwordAlreadyRequested.html.twig index 0eec4301b..1e2453727 100644 --- a/src/Wallabag/UserBundle/Resources/views/themes/material/Resetting/passwordAlreadyRequested.html.twig +++ b/src/Wallabag/UserBundle/Resources/views/themes/material/Resetting/passwordAlreadyRequested.html.twig @@ -5,7 +5,7 @@ {% block fos_user_content %}
- {{ 'resetting.password_already_requested'|trans }} + {{ 'resetting.password_already_requested'|trans }}
{% endblock fos_user_content %} diff --git a/src/Wallabag/UserBundle/Resources/views/themes/material/Resetting/reset_content.html.twig b/src/Wallabag/UserBundle/Resources/views/themes/material/Resetting/reset_content.html.twig index f7e061dde..9d0a061c4 100644 --- a/src/Wallabag/UserBundle/Resources/views/themes/material/Resetting/reset_content.html.twig +++ b/src/Wallabag/UserBundle/Resources/views/themes/material/Resetting/reset_content.html.twig @@ -1,6 +1,6 @@ {% trans_default_domain 'FOSUserBundle' %} - +{{ form_start(form, { 'action': path('fos_user_resetting_reset', {'token': token}), 'attr': { 'class': 'fos_user_resetting_reset' } }) }}
{{ form_widget(form) }} diff --git a/web/app.php b/web/app.php index c5c264090..cc2fefb55 100644 --- a/web/app.php +++ b/web/app.php @@ -1,23 +1,23 @@ unregister(); $apcLoader->register(true); */ -require_once __DIR__.'/../app/AppKernel.php'; -//require_once __DIR__.'/../app/AppCache.php'; - $kernel = new AppKernel('prod', false); $kernel->loadClassCache(); //$kernel = new AppCache($kernel); diff --git a/web/app_dev.php b/web/app_dev.php index e0279c2ae..635bf7ac7 100644 --- a/web/app_dev.php +++ b/web/app_dev.php @@ -4,7 +4,8 @@ use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Debug\Debug; // If you don't want to setup permissions the proper way, just uncomment the following PHP line -// read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more information +// read http://symfony.com/doc/current/book/installation.html#checking-symfony-application-configuration-and-setup +// for more information //umask(0000); // This check prevents access to debug front controllers that are deployed by accident to production servers. @@ -17,11 +18,12 @@ if (isset($_SERVER['HTTP_CLIENT_IP']) exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.'); } -$loader = require_once __DIR__.'/../app/bootstrap.php.cache'; +/** + * @var Composer\Autoload\ClassLoader $loader + */ +$loader = require __DIR__.'/../app/autoload.php'; Debug::enable(); -require_once __DIR__.'/../app/AppKernel.php'; - $kernel = new AppKernel('dev', true); $kernel->loadClassCache(); $request = Request::createFromGlobals(); From b4faefc04dee1f84ba91d86c96ccc79388e98cd6 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Tue, 22 Dec 2015 13:09:10 +0100 Subject: [PATCH 07/20] Switch to psr-4 --- composer.json | 2 +- composer.lock | 19 +++++++++---------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/composer.json b/composer.json index b9591aa32..3a32c02fd 100644 --- a/composer.json +++ b/composer.json @@ -104,7 +104,7 @@ } }, "autoload": { - "psr-0": { "": "src/" }, + "psr-4": { "": "src/" }, "classmap": [ "app/AppKernel.php", "app/AppCache.php" ] }, "config": { diff --git a/composer.lock b/composer.lock index d5c9d6031..305194cd0 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,8 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "f9037d0e31ddc387133f603a5f1a2c8c", - "content-hash": "12c1a8f82eb6129b288629c4b56a448d", + "hash": "42bbd48a9c971aee0011808edfb08915", + "content-hash": "6e0d8bfeb719303796b0f13b28eadb86", "packages": [ { "name": "behat/transliterator", @@ -3987,16 +3987,16 @@ }, { "name": "scheb/two-factor-bundle", - "version": "v1.5.0", + "version": "v1.4.7", "source": { "type": "git", "url": "https://github.com/scheb/two-factor-bundle.git", - "reference": "b0da3a85b181237c3bebde88c99b18745313360b" + "reference": "ef6830dbbf62b22efd335db8f64bf0f51d4284a2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/scheb/two-factor-bundle/zipball/b0da3a85b181237c3bebde88c99b18745313360b", - "reference": "b0da3a85b181237c3bebde88c99b18745313360b", + "url": "https://api.github.com/repos/scheb/two-factor-bundle/zipball/ef6830dbbf62b22efd335db8f64bf0f51d4284a2", + "reference": "ef6830dbbf62b22efd335db8f64bf0f51d4284a2", "shasum": "" }, "require": { @@ -4032,7 +4032,7 @@ "two-factor", "two-step" ], - "time": "2015-11-15 13:31:23" + "time": "2015-08-25 19:58:00" }, { "name": "sensio/distribution-bundle", @@ -5026,7 +5026,6 @@ "description": "Symfony Security Component - ACL (Access Control List)", "homepage": "https://symfony.com", "time": "2015-11-18 13:41:01" ->>>>>>> Update deps }, { "name": "symfony/swiftmailer-bundle", @@ -6677,7 +6676,7 @@ "shasum": "" }, "require": { - "php": ">=5.3.9" + "php": ">=5.3.3" }, "suggest": { "symfony/debug": "For tracking deprecated interfaces usages at runtime with DebugClassLoader" @@ -6728,7 +6727,7 @@ "prefer-stable": true, "prefer-lowest": false, "platform": { - "php": ">=5.5" + "php": ">=5.5.0" }, "platform-dev": [] } From 8ba854c068f541039d81524d171769b6e1220171 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Thu, 31 Dec 2015 18:51:35 +0100 Subject: [PATCH 08/20] TwoFactorBundle -> 2.0 --- composer.json | 2 +- composer.lock | 154 ++++++++++++++++++++++++++------------------------ 2 files changed, 81 insertions(+), 75 deletions(-) diff --git a/composer.json b/composer.json index 3a32c02fd..2a5928e34 100644 --- a/composer.json +++ b/composer.json @@ -57,7 +57,7 @@ "friendsofsymfony/user-bundle": "dev-master", "friendsofsymfony/oauth-server-bundle": "^1.4@dev", "stof/doctrine-extensions-bundle": "^1.2@dev", - "scheb/two-factor-bundle": "~1.4.0", + "scheb/two-factor-bundle": "~2.0", "grandt/phpepub": "~4.0", "wallabag/php-mobi": "~1.0.0", "kphoen/rulerz-bundle": "~0.10", diff --git a/composer.lock b/composer.lock index 305194cd0..94b40ac8d 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,8 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "42bbd48a9c971aee0011808edfb08915", - "content-hash": "6e0d8bfeb719303796b0f13b28eadb86", + "hash": "eac49c76ef42a2e10cd4f228983c1d55", + "content-hash": "f1d311928f3a196b2d192e5e451217d1", "packages": [ { "name": "behat/transliterator", @@ -117,16 +117,16 @@ }, { "name": "doctrine/cache", - "version": "v1.5.4", + "version": "v1.6.0", "source": { "type": "git", "url": "https://github.com/doctrine/cache.git", - "reference": "47cdc76ceb95cc591d9c79a36dc3794975b5d136" + "reference": "f8af318d14bdb0eff0336795b428b547bd39ccb6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/cache/zipball/47cdc76ceb95cc591d9c79a36dc3794975b5d136", - "reference": "47cdc76ceb95cc591d9c79a36dc3794975b5d136", + "url": "https://api.github.com/repos/doctrine/cache/zipball/f8af318d14bdb0eff0336795b428b547bd39ccb6", + "reference": "f8af318d14bdb0eff0336795b428b547bd39ccb6", "shasum": "" }, "require": { @@ -183,7 +183,7 @@ "cache", "caching" ], - "time": "2015-12-19 05:03:47" + "time": "2015-12-31 16:37:02" }, { "name": "doctrine/collections", @@ -1106,17 +1106,17 @@ }, { "name": "friendsofsymfony/rest-bundle", - "version": "1.7.6", + "version": "1.7.7", "target-dir": "FOS/RestBundle", "source": { "type": "git", "url": "https://github.com/FriendsOfSymfony/FOSRestBundle.git", - "reference": "f95b2f141748e9a5e2ddae833f60c38417aee8c3" + "reference": "c79b7e5df96e5581591ceb6a026bd4e5f9346de0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/zipball/f95b2f141748e9a5e2ddae833f60c38417aee8c3", - "reference": "f95b2f141748e9a5e2ddae833f60c38417aee8c3", + "url": "https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/zipball/c79b7e5df96e5581591ceb6a026bd4e5f9346de0", + "reference": "c79b7e5df96e5581591ceb6a026bd4e5f9346de0", "shasum": "" }, "require": { @@ -1188,7 +1188,7 @@ "keywords": [ "rest" ], - "time": "2015-12-20 13:45:30" + "time": "2015-12-29 16:02:50" }, { "name": "friendsofsymfony/user-bundle", @@ -2169,16 +2169,16 @@ }, { "name": "hoa/stream", - "version": "0.15.08.28", + "version": "0.15.10.26", "source": { "type": "git", "url": "https://github.com/hoaproject/Stream.git", - "reference": "cbd0f4749e447f4d31001e7c898f5e794c5861cb" + "reference": "011ab91d942f1d7096deade4c8a10fe57d51c5b3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/hoaproject/Stream/zipball/cbd0f4749e447f4d31001e7c898f5e794c5861cb", - "reference": "cbd0f4749e447f4d31001e7c898f5e794c5861cb", + "url": "https://api.github.com/repos/hoaproject/Stream/zipball/011ab91d942f1d7096deade4c8a10fe57d51c5b3", + "reference": "011ab91d942f1d7096deade4c8a10fe57d51c5b3", "shasum": "" }, "require": { @@ -2223,7 +2223,7 @@ "stream", "wrapper" ], - "time": "2015-08-28 07:31:43" + "time": "2015-10-22 06:30:43" }, { "name": "hoa/ustring", @@ -2480,16 +2480,16 @@ }, { "name": "j0k3r/graby", - "version": "1.0.7", + "version": "1.0.8", "source": { "type": "git", "url": "https://github.com/j0k3r/graby.git", - "reference": "301f8c492be4c9b2bed8f29c32641636de0eca0a" + "reference": "bf152ccc6629bdd63b1e5e8b297c2912516b5f1e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/j0k3r/graby/zipball/301f8c492be4c9b2bed8f29c32641636de0eca0a", - "reference": "301f8c492be4c9b2bed8f29c32641636de0eca0a", + "url": "https://api.github.com/repos/j0k3r/graby/zipball/bf152ccc6629bdd63b1e5e8b297c2912516b5f1e", + "reference": "bf152ccc6629bdd63b1e5e8b297c2912516b5f1e", "shasum": "" }, "require": { @@ -2532,20 +2532,20 @@ } ], "description": "Graby helps you extract article content from web pages", - "time": "2015-12-16 10:21:48" + "time": "2015-12-24 08:28:38" }, { "name": "j0k3r/graby-site-config", - "version": "1.0.10", + "version": "1.0.11", "source": { "type": "git", "url": "https://github.com/j0k3r/graby-site-config.git", - "reference": "daea5cdd2c3d89cb90402205392423030f8eebce" + "reference": "ac198f308beabccc97bbd35ed0daeaac63fbf1e3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/j0k3r/graby-site-config/zipball/daea5cdd2c3d89cb90402205392423030f8eebce", - "reference": "daea5cdd2c3d89cb90402205392423030f8eebce", + "url": "https://api.github.com/repos/j0k3r/graby-site-config/zipball/ac198f308beabccc97bbd35ed0daeaac63fbf1e3", + "reference": "ac198f308beabccc97bbd35ed0daeaac63fbf1e3", "shasum": "" }, "require": { @@ -2568,7 +2568,7 @@ } ], "description": "Graby site config files", - "time": "2015-12-16 10:27:19" + "time": "2015-12-23 22:52:15" }, { "name": "j0k3r/php-readability", @@ -3987,26 +3987,27 @@ }, { "name": "scheb/two-factor-bundle", - "version": "v1.4.7", + "version": "v2.0.0", "source": { "type": "git", "url": "https://github.com/scheb/two-factor-bundle.git", - "reference": "ef6830dbbf62b22efd335db8f64bf0f51d4284a2" + "reference": "27c8e3530c077bbfb2a5312dd8fc3005f26c0fc4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/scheb/two-factor-bundle/zipball/ef6830dbbf62b22efd335db8f64bf0f51d4284a2", - "reference": "ef6830dbbf62b22efd335db8f64bf0f51d4284a2", + "url": "https://api.github.com/repos/scheb/two-factor-bundle/zipball/27c8e3530c077bbfb2a5312dd8fc3005f26c0fc4", + "reference": "27c8e3530c077bbfb2a5312dd8fc3005f26c0fc4", "shasum": "" }, "require": { + "paragonie/random_compat": "~1.0", "sonata-project/google-authenticator": "~1.0", - "symfony/symfony": "~2.1" + "symfony/symfony": "~2.6|~3.0" }, "require-dev": { "satooshi/php-coveralls": "~0.6", "swiftmailer/swiftmailer": ">=4.3, <6.0", - "symfony/phpunit-bridge": "~2.7" + "symfony/phpunit-bridge": "~2.7|~3.0" }, "type": "symfony-bundle", "autoload": { @@ -4024,15 +4025,16 @@ "email": "me@christianscheb.de" } ], - "description": "Provides two-factor authenticaton for Symfony2", + "description": "Provides two-factor authentication for Symfony applications", "homepage": "https://github.com/scheb/two-factor-bundle", "keywords": [ "Authentication", - "Symfony2", + "security", + "symfony", "two-factor", "two-step" ], - "time": "2015-08-25 19:58:00" + "time": "2015-12-31 17:20:20" }, { "name": "sensio/distribution-bundle", @@ -4577,7 +4579,7 @@ }, { "name": "symfony/polyfill-intl-icu", - "version": "v1.0.0", + "version": "v1.0.1", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-icu.git", @@ -4632,21 +4634,24 @@ }, { "name": "symfony/polyfill-mbstring", - "version": "v1.0.0", + "version": "v1.0.1", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "0b6a8940385311a24e060ec1fe35680e17c74497" + "reference": "49ff736bd5d41f45240cec77b44967d76e0c3d25" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/0b6a8940385311a24e060ec1fe35680e17c74497", - "reference": "0b6a8940385311a24e060ec1fe35680e17c74497", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/49ff736bd5d41f45240cec77b44967d76e0c3d25", + "reference": "49ff736bd5d41f45240cec77b44967d76e0c3d25", "shasum": "" }, "require": { "php": ">=5.3.3" }, + "suggest": { + "ext-mbstring": "For best performance" + }, "type": "library", "extra": { "branch-alias": { @@ -4684,11 +4689,11 @@ "portable", "shim" ], - "time": "2015-11-04 20:28:58" + "time": "2015-11-20 09:19:13" }, { "name": "symfony/polyfill-php54", - "version": "v1.0.0", + "version": "v1.0.1", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php54.git", @@ -4746,7 +4751,7 @@ }, { "name": "symfony/polyfill-php55", - "version": "v1.0.0", + "version": "v1.0.1", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php55.git", @@ -4802,16 +4807,16 @@ }, { "name": "symfony/polyfill-php56", - "version": "v1.0.0", + "version": "v1.0.1", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php56.git", - "reference": "a6bd4770a6967517e6610529e14afaa3111094a3" + "reference": "e2e77609a9e2328eb370fbb0e0d8b2000ebb488f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php56/zipball/a6bd4770a6967517e6610529e14afaa3111094a3", - "reference": "a6bd4770a6967517e6610529e14afaa3111094a3", + "url": "https://api.github.com/repos/symfony/polyfill-php56/zipball/e2e77609a9e2328eb370fbb0e0d8b2000ebb488f", + "reference": "e2e77609a9e2328eb370fbb0e0d8b2000ebb488f", "shasum": "" }, "require": { @@ -4854,11 +4859,11 @@ "portable", "shim" ], - "time": "2015-11-04 20:28:58" + "time": "2015-12-18 15:10:25" }, { "name": "symfony/polyfill-php70", - "version": "v1.0.0", + "version": "v1.0.1", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php70.git", @@ -4917,7 +4922,7 @@ }, { "name": "symfony/polyfill-util", - "version": "v1.0.0", + "version": "v1.0.1", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-util.git", @@ -4969,26 +4974,27 @@ }, { "name": "symfony/security-acl", - "version": "v2.7.7", + "version": "v2.8.0", "source": { "type": "git", "url": "https://github.com/symfony/security-acl.git", - "reference": "9aec8062e33fca5e08d2a78669b2222252e8c3b6" + "reference": "4a3f7327ad215242c78f6564ad4ea6d2db1b8347" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/security-acl/zipball/9aec8062e33fca5e08d2a78669b2222252e8c3b6", - "reference": "9aec8062e33fca5e08d2a78669b2222252e8c3b6", + "url": "https://api.github.com/repos/symfony/security-acl/zipball/4a3f7327ad215242c78f6564ad4ea6d2db1b8347", + "reference": "4a3f7327ad215242c78f6564ad4ea6d2db1b8347", "shasum": "" }, "require": { "php": ">=5.3.9", - "symfony/security-core": "~2.4" + "symfony/security-core": "~2.4|~3.0.0" }, "require-dev": { "doctrine/common": "~2.2", "doctrine/dbal": "~2.2", - "psr/log": "~1.0" + "psr/log": "~1.0", + "symfony/phpunit-bridge": "~2.7|~3.0.0" }, "suggest": { "doctrine/dbal": "For using the built-in ACL implementation", @@ -4998,7 +5004,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "2.8-dev" } }, "autoload": { @@ -5025,7 +5031,7 @@ ], "description": "Symfony Security Component - ACL (Access Control List)", "homepage": "https://symfony.com", - "time": "2015-11-18 13:41:01" + "time": "2015-12-28 09:39:09" }, { "name": "symfony/swiftmailer-bundle", @@ -5086,16 +5092,16 @@ }, { "name": "symfony/symfony", - "version": "v2.8.0", + "version": "v2.8.1", "source": { "type": "git", "url": "https://github.com/symfony/symfony.git", - "reference": "5615b92cd452cd54f1433a3f53de87c096a1107f" + "reference": "8956ed50a44c5c4e02f2176c0773e24487477b09" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/symfony/zipball/5615b92cd452cd54f1433a3f53de87c096a1107f", - "reference": "5615b92cd452cd54f1433a3f53de87c096a1107f", + "url": "https://api.github.com/repos/symfony/symfony/zipball/8956ed50a44c5c4e02f2176c0773e24487477b09", + "reference": "8956ed50a44c5c4e02f2176c0773e24487477b09", "shasum": "" }, "require": { @@ -5215,7 +5221,7 @@ "keywords": [ "framework" ], - "time": "2015-11-30 17:26:10" + "time": "2015-12-26 15:56:52" }, { "name": "tecnickcom/tcpdf", @@ -6611,16 +6617,16 @@ }, { "name": "sensio/generator-bundle", - "version": "v3.0.3", + "version": "v3.0.4", "source": { "type": "git", "url": "https://github.com/sensiolabs/SensioGeneratorBundle.git", - "reference": "525e078ff7d5e9f19b0ef912bb6d6753673b3c66" + "reference": "e8d4db2fd6cd61e62208bda8f4f629e557f6acef" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/zipball/525e078ff7d5e9f19b0ef912bb6d6753673b3c66", - "reference": "525e078ff7d5e9f19b0ef912bb6d6753673b3c66", + "url": "https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/zipball/e8d4db2fd6cd61e62208bda8f4f629e557f6acef", + "reference": "e8d4db2fd6cd61e62208bda8f4f629e557f6acef", "shasum": "" }, "require": { @@ -6659,20 +6665,20 @@ } ], "description": "This bundle generates code for you", - "time": "2015-12-20 20:01:41" + "time": "2015-12-28 16:09:21" }, { "name": "symfony/phpunit-bridge", - "version": "v2.8.0", + "version": "v2.8.1", "source": { "type": "git", "url": "https://github.com/symfony/phpunit-bridge.git", - "reference": "fb79ac646c342fdff19864619943a6c58bb28893" + "reference": "2deb2ccbe184948ae4e85e7b99e962738d3d2d69" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/fb79ac646c342fdff19864619943a6c58bb28893", - "reference": "fb79ac646c342fdff19864619943a6c58bb28893", + "url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/2deb2ccbe184948ae4e85e7b99e962738d3d2d69", + "reference": "2deb2ccbe184948ae4e85e7b99e962738d3d2d69", "shasum": "" }, "require": { @@ -6714,7 +6720,7 @@ ], "description": "Symfony PHPUnit Bridge", "homepage": "https://symfony.com", - "time": "2015-11-27 22:51:43" + "time": "2015-12-11 08:57:52" } ], "aliases": [], From 1d76102a240c2596832848128a7b9cf5aa2050dd Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Sat, 9 Jan 2016 18:38:40 +0100 Subject: [PATCH 09/20] Fix recent update - some missing url parameters from WallabagRestController & EntryController - use a service for `EntryFilterType` to use fully qualified name instead (so changing class signature) - update ImportBundle (url & form) --- .../Controller/WallabagRestController.php | 3 ++- .../CoreBundle/Controller/EntryController.php | 2 +- .../CoreBundle/Filter/EntryFilterType.php | 20 +++++++++---------- .../Form/Type/UserInformationType.php | 2 +- .../CoreBundle/Resources/config/services.yml | 8 ++++++++ .../Controller/PocketController.php | 5 +++-- .../Controller/WallabagV1Controller.php | 2 +- .../Form/Type/UploadImportType.php | 8 +++++--- 8 files changed, 31 insertions(+), 19 deletions(-) diff --git a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php index f8a2745a4..d9035cac7 100644 --- a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php +++ b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php @@ -8,6 +8,7 @@ use Hateoas\Representation\Factory\PagerfantaFactory; use Nelmio\ApiDocBundle\Annotation\ApiDoc; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; +use Symfony\Component\Routing\Generator\UrlGeneratorInterface; use Wallabag\CoreBundle\Entity\Entry; use Wallabag\CoreBundle\Entity\Tag; @@ -84,7 +85,7 @@ class WallabagRestController extends FOSRestController $pagerfantaFactory = new PagerfantaFactory('page', 'perPage'); $paginatedCollection = $pagerfantaFactory->createRepresentation( $pager, - new Route('api_get_entries', [], $absolute = true) + new Route('api_get_entries', [], UrlGeneratorInterface::ABSOLUTE_URL) ); $json = $this->get('serializer')->serialize($paginatedCollection, 'json'); diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php index 83e5b57da..dda0a4561 100644 --- a/src/Wallabag/CoreBundle/Controller/EntryController.php +++ b/src/Wallabag/CoreBundle/Controller/EntryController.php @@ -234,7 +234,7 @@ class EntryController extends Controller throw new \InvalidArgumentException(sprintf('Type "%s" is not implemented.', $type)); } - $form = $this->createForm(new EntryFilterType($repository, $this->getUser())); + $form = $this->createForm(EntryFilterType::class); if ($request->query->has($form->getName())) { // manually bind values from the request diff --git a/src/Wallabag/CoreBundle/Filter/EntryFilterType.php b/src/Wallabag/CoreBundle/Filter/EntryFilterType.php index 4430c971a..c38be8320 100644 --- a/src/Wallabag/CoreBundle/Filter/EntryFilterType.php +++ b/src/Wallabag/CoreBundle/Filter/EntryFilterType.php @@ -12,7 +12,7 @@ use Lexik\Bundle\FormFilterBundle\Filter\Form\Type\ChoiceFilterType; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; -use Wallabag\UserBundle\Entity\User; +use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage; class EntryFilterType extends AbstractType { @@ -23,12 +23,12 @@ class EntryFilterType extends AbstractType * Repository & user are used to get a list of language entries for this user. * * @param EntityRepository $entryRepository - * @param User $user + * @param TokenStorage $token */ - public function __construct(EntityRepository $entryRepository, User $user) + public function __construct(EntityRepository $entryRepository, TokenStorage $token) { $this->repository = $entryRepository; - $this->user = $user; + $this->user = $token->getToken()->getUser(); } public function buildForm(FormBuilderInterface $builder, array $options) @@ -54,13 +54,13 @@ class EntryFilterType extends AbstractType ) ->add('domainName', TextFilterType::class, array( 'apply_filter' => function (QueryInterface $filterQuery, $field, $values) { - $value = $values['value']; - if (strlen($value) <= 2 || empty($value)) { - return; - } - $expression = $filterQuery->getExpr()->like($field, $filterQuery->getExpr()->literal('%'.$value.'%')); + $value = $values['value']; + if (strlen($value) <= 2 || empty($value)) { + return; + } + $expression = $filterQuery->getExpr()->like($field, $filterQuery->getExpr()->literal('%'.$value.'%')); - return $filterQuery->createCondition($expression); + return $filterQuery->createCondition($expression); }, )) ->add('isArchived', CheckboxFilterType::class) diff --git a/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php b/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php index f52e409ac..f491b0ae3 100644 --- a/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php +++ b/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php @@ -26,7 +26,7 @@ class UserInformationType extends AbstractType public function getParent() { - return 'fos_user_registration'; + return 'FOS\UserBundle\Form\Type\RegistrationFormType'; } public function configureOptions(OptionsResolver $resolver) diff --git a/src/Wallabag/CoreBundle/Resources/config/services.yml b/src/Wallabag/CoreBundle/Resources/config/services.yml index e8dafc5d3..436007359 100644 --- a/src/Wallabag/CoreBundle/Resources/config/services.yml +++ b/src/Wallabag/CoreBundle/Resources/config/services.yml @@ -14,6 +14,14 @@ services: tags: - { name: form.type } + wallabag_core.filter.type.entry: + class: Wallabag\CoreBundle\Filter\EntryFilterType + arguments: + - "@wallabag_core.entry_repository" + - "@security.token_storage" + tags: + - { name: form.type } + wallabag_core.param_converter.username_rsstoken_converter: class: Wallabag\CoreBundle\ParamConverter\UsernameRssTokenConverter tags: diff --git a/src/Wallabag/ImportBundle/Controller/PocketController.php b/src/Wallabag/ImportBundle/Controller/PocketController.php index a08533831..72dc2696a 100644 --- a/src/Wallabag/ImportBundle/Controller/PocketController.php +++ b/src/Wallabag/ImportBundle/Controller/PocketController.php @@ -3,6 +3,7 @@ namespace Wallabag\ImportBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Symfony\Component\Routing\Generator\UrlGeneratorInterface; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class PocketController extends Controller @@ -23,12 +24,12 @@ class PocketController extends Controller public function authAction() { $requestToken = $this->get('wallabag_import.pocket.import') - ->getRequestToken($this->generateUrl('import', [], true)); + ->getRequestToken($this->generateUrl('import', UrlGeneratorInterface::ABSOLUTE_URL)); $this->get('session')->set('import.pocket.code', $requestToken); return $this->redirect( - 'https://getpocket.com/auth/authorize?request_token='.$requestToken.'&redirect_uri='.$this->generateUrl('import_pocket_callback', [], true), + 'https://getpocket.com/auth/authorize?request_token='.$requestToken.'&redirect_uri='.$this->generateUrl('import_pocket_callback', UrlGeneratorInterface::ABSOLUTE_URL), 301 ); } diff --git a/src/Wallabag/ImportBundle/Controller/WallabagV1Controller.php b/src/Wallabag/ImportBundle/Controller/WallabagV1Controller.php index e50a6c35a..35fe620f8 100644 --- a/src/Wallabag/ImportBundle/Controller/WallabagV1Controller.php +++ b/src/Wallabag/ImportBundle/Controller/WallabagV1Controller.php @@ -14,7 +14,7 @@ class WallabagV1Controller extends Controller */ public function indexAction(Request $request) { - $form = $this->createForm(new UploadImportType()); + $form = $this->createForm(UploadImportType::class); $form->handleRequest($request); $wallabag = $this->get('wallabag_import.wallabag_v1.import'); diff --git a/src/Wallabag/ImportBundle/Form/Type/UploadImportType.php b/src/Wallabag/ImportBundle/Form/Type/UploadImportType.php index 415890f34..2e6b59cb4 100644 --- a/src/Wallabag/ImportBundle/Form/Type/UploadImportType.php +++ b/src/Wallabag/ImportBundle/Form/Type/UploadImportType.php @@ -4,18 +4,20 @@ namespace Wallabag\ImportBundle\Form\Type; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; +use Symfony\Component\Form\Extension\Core\Type\SubmitType; +use Symfony\Component\Form\Extension\Core\Type\FileType; class UploadImportType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) { $builder - ->add('file', 'file') - ->add('save', 'submit') + ->add('file', FileType::class) + ->add('save', SubmitType::class) ; } - public function getName() + public function getBlockPrefix() { return 'upload_import_file'; } From 6108b0f26ca33442279d643cf17b1f380432fa9f Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Wed, 13 Jan 2016 22:34:54 +0100 Subject: [PATCH 10/20] Update deps LexikFormFilterBundle & RulerZBundle are now Symfony 3 compatible There are still some issue with FOSOAuthServerBundle --- composer.json | 4 +- composer.lock | 586 +++++++++++++++++++++++++++++++++++--------------- 2 files changed, 413 insertions(+), 177 deletions(-) diff --git a/composer.json b/composer.json index 2a5928e34..46630f770 100644 --- a/composer.json +++ b/composer.json @@ -52,10 +52,10 @@ "htmlawed/htmlawed": "~1.1.19", "liip/theme-bundle": "~1.1", "pagerfanta/pagerfanta": "~1.0.3", - "lexik/form-filter-bundle": "~4.0", + "lexik/form-filter-bundle": "~5.0", "j0k3r/graby": "~1.0", "friendsofsymfony/user-bundle": "dev-master", - "friendsofsymfony/oauth-server-bundle": "^1.4@dev", + "friendsofsymfony/oauth-server-bundle": "^1.5@dev", "stof/doctrine-extensions-bundle": "^1.2@dev", "scheb/two-factor-bundle": "~2.0", "grandt/phpepub": "~4.0", diff --git a/composer.lock b/composer.lock index 94b40ac8d..7fd15a4cf 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,8 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "eac49c76ef42a2e10cd4f228983c1d55", - "content-hash": "f1d311928f3a196b2d192e5e451217d1", + "hash": "786f108cf7727020aa2f003dccd9a58e", + "content-hash": "d8c2f517c9cd9d9ec767a0b396a11de7", "packages": [ { "name": "behat/transliterator", @@ -983,32 +983,33 @@ }, { "name": "friendsofsymfony/oauth-server-bundle", - "version": "1.4.2", - "target-dir": "FOS/OAuthServerBundle", + "version": "dev-master", "source": { "type": "git", "url": "https://github.com/FriendsOfSymfony/FOSOAuthServerBundle.git", - "reference": "9e15c229eff547443d686445d629e9356ab0672e" + "reference": "2cf6dd8326fd2ca223108a1578d2c16f0544fa86" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/FriendsOfSymfony/FOSOAuthServerBundle/zipball/9e15c229eff547443d686445d629e9356ab0672e", - "reference": "9e15c229eff547443d686445d629e9356ab0672e", + "url": "https://api.github.com/repos/FriendsOfSymfony/FOSOAuthServerBundle/zipball/2cf6dd8326fd2ca223108a1578d2c16f0544fa86", + "reference": "2cf6dd8326fd2ca223108a1578d2c16f0544fa86", "shasum": "" }, "require": { - "friendsofsymfony/oauth2-php": "~1.1.0", + "friendsofsymfony/oauth2-php": "~1.1", "php": ">=5.3.3", - "symfony/framework-bundle": "~2.1", - "symfony/security-bundle": "~2.1" + "symfony/framework-bundle": "~2.2|~3.0", + "symfony/security-bundle": "~2.1|~3.0" }, "require-dev": { "doctrine/doctrine-bundle": "~1.0", - "doctrine/mongodb-odm": "1.0.*@dev", - "doctrine/orm": ">=2.2,<2.5-dev", - "symfony/class-loader": "~2.1", - "symfony/yaml": "~2.1", - "willdurand/propel-typehintable-behavior": "1.0.*" + "doctrine/mongodb-odm": "~1.0", + "doctrine/orm": "~2.2", + "phing/phing": "~2.4", + "propel/propel1": "^1.6.5", + "symfony/class-loader": "~2.1|~3.0", + "symfony/yaml": "~2.1|~3.0", + "willdurand/propel-typehintable-behavior": "^1.0.4" }, "suggest": { "doctrine/doctrine-bundle": "*", @@ -1019,12 +1020,12 @@ "type": "symfony-bundle", "extra": { "branch-alias": { - "dev-master": "1.4-dev" + "dev-master": "1.5-dev" } }, "autoload": { - "psr-0": { - "FOS\\OAuthServerBundle": "" + "psr-4": { + "FOS\\OAuthServerBundle\\": "" } }, "notification-url": "https://packagist.org/downloads/", @@ -1048,25 +1049,25 @@ "oauth2", "server" ], - "time": "2014-10-31 13:44:14" + "time": "2016-01-13 19:46:44" }, { "name": "friendsofsymfony/oauth2-php", - "version": "1.1.1", + "version": "1.2.0", "source": { "type": "git", "url": "https://github.com/FriendsOfSymfony/oauth2-php.git", - "reference": "23e76537c4a02e666ab4ba5abe67a69a886a0310" + "reference": "4ae0a2aa85566146ef6f0f7169854c49e0c9243a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/FriendsOfSymfony/oauth2-php/zipball/23e76537c4a02e666ab4ba5abe67a69a886a0310", - "reference": "23e76537c4a02e666ab4ba5abe67a69a886a0310", + "url": "https://api.github.com/repos/FriendsOfSymfony/oauth2-php/zipball/4ae0a2aa85566146ef6f0f7169854c49e0c9243a", + "reference": "4ae0a2aa85566146ef6f0f7169854c49e0c9243a", "shasum": "" }, "require": { "php": ">=5.3.2", - "symfony/http-foundation": "~2.0" + "symfony/http-foundation": "~2.0|~3.0" }, "require-dev": { "phpunit/phpunit": "~4.0" @@ -1102,7 +1103,7 @@ "oauth", "oauth2" ], - "time": "2014-11-03 10:21:20" + "time": "2015-12-21 11:32:17" }, { "name": "friendsofsymfony/rest-bundle", @@ -1737,34 +1738,36 @@ }, { "name": "hoa/compiler", - "version": "2.15.10.29", + "version": "3.16.01.11", "source": { "type": "git", "url": "https://github.com/hoaproject/Compiler.git", - "reference": "ec0849fd3c1472fbcd86c3c961981f0cfe1f8d39" + "reference": "1496646bfa85f88ab50b651857fbf4bbd15dbca1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/hoaproject/Compiler/zipball/ec0849fd3c1472fbcd86c3c961981f0cfe1f8d39", - "reference": "ec0849fd3c1472fbcd86c3c961981f0cfe1f8d39", + "url": "https://api.github.com/repos/hoaproject/Compiler/zipball/1496646bfa85f88ab50b651857fbf4bbd15dbca1", + "reference": "1496646bfa85f88ab50b651857fbf4bbd15dbca1", "shasum": "" }, "require": { - "hoa/core": "~2.0", + "hoa/consistency": "~1.0", + "hoa/exception": "~1.0", "hoa/file": "~0.0", - "hoa/iterator": "~1.0", + "hoa/iterator": "~2.0", "hoa/math": "~0.0", + "hoa/protocol": "~1.0", "hoa/regex": "~0.0", - "hoa/visitor": "~1.0" + "hoa/visitor": "~2.0" }, "require-dev": { - "hoa/json": "~1.0", - "hoa/test": "~1.0" + "hoa/json": "~2.0", + "hoa/test": "~2.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.x-dev" + "dev-master": "3.x-dev" } }, "autoload": { @@ -1813,45 +1816,42 @@ "trace", "uniform" ], - "time": "2015-10-29 21:35:12" + "time": "2016-01-11 08:55:03" }, { - "name": "hoa/core", - "version": "2.15.11.09", + "name": "hoa/consistency", + "version": "1.16.01.11", "source": { "type": "git", - "url": "https://github.com/hoaproject/Core.git", - "reference": "5538b1e90e2c66c90df5cc45e03fb85d047be900" + "url": "https://github.com/hoaproject/Consistency.git", + "reference": "c7919e409ca68858f8cceadb7565b9f622575249" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/hoaproject/Core/zipball/5538b1e90e2c66c90df5cc45e03fb85d047be900", - "reference": "5538b1e90e2c66c90df5cc45e03fb85d047be900", + "url": "https://api.github.com/repos/hoaproject/Consistency/zipball/c7919e409ca68858f8cceadb7565b9f622575249", + "reference": "c7919e409ca68858f8cceadb7565b9f622575249", "shasum": "" }, "require": { - "ext-spl": "*", - "php": ">=5.4.0" + "hoa/exception": "~1.0", + "php": ">=5.5.0" }, "require-dev": { - "hoa/test": "~1.0" - }, - "suggest": { - "ext-mbstring": "ext/mbstring must be present (or a third implementation).", - "hoa/cli": "To use the `hoa` script." + "hoa/stream": "~0.0", + "hoa/test": "~2.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.x-dev" + "dev-master": "1.x-dev" } }, "autoload": { "psr-4": { - "Hoa\\Core\\": "." + "Hoa\\Consistency\\": "." }, "files": [ - "Core.php" + "Prelude.php" ] }, "notification-url": "https://packagist.org/downloads/", @@ -1868,41 +1868,152 @@ "homepage": "http://hoa-project.net/" } ], - "description": "The Hoa\\Core library.", + "description": "The Hoa\\Consistency library.", "homepage": "http://hoa-project.net/", "keywords": [ + "autoloader", + "callable", "consistency", - "core", - "data", - "event", - "library", - "listener", - "parameter", - "protocol" + "entity", + "flex", + "keyword", + "library" ], - "time": "2015-11-09 06:51:06" + "time": "2016-01-11 08:25:25" }, { - "name": "hoa/file", - "version": "0.15.11.09", + "name": "hoa/event", + "version": "1.16.01.11", "source": { "type": "git", - "url": "https://github.com/hoaproject/File.git", - "reference": "f46fe552ff79cb6c93a2ff9c25cfbc134fbd57ee" + "url": "https://github.com/hoaproject/Event.git", + "reference": "4470e090207336c01ea0cc6f9f1fa8832e4d9866" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/hoaproject/File/zipball/f46fe552ff79cb6c93a2ff9c25cfbc134fbd57ee", - "reference": "f46fe552ff79cb6c93a2ff9c25cfbc134fbd57ee", + "url": "https://api.github.com/repos/hoaproject/Event/zipball/4470e090207336c01ea0cc6f9f1fa8832e4d9866", + "reference": "4470e090207336c01ea0cc6f9f1fa8832e4d9866", "shasum": "" }, "require": { - "hoa/core": "~2.0", - "hoa/iterator": "~1.0", + "hoa/consistency": "~1.0", + "hoa/exception": "~1.0" + }, + "require-dev": { + "hoa/test": "~2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Hoa\\Event\\": "." + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Ivan Enderlin", + "email": "ivan.enderlin@hoa-project.net" + }, + { + "name": "Hoa community", + "homepage": "http://hoa-project.net/" + } + ], + "description": "The Hoa\\Event library.", + "homepage": "http://hoa-project.net/", + "keywords": [ + "event", + "library", + "listener", + "observer" + ], + "time": "2016-01-11 08:34:41" + }, + { + "name": "hoa/exception", + "version": "1.16.01.11", + "source": { + "type": "git", + "url": "https://github.com/hoaproject/Exception.git", + "reference": "fa4a9648aef2c8ca8f4cd543429b24dc8feaa366" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/hoaproject/Exception/zipball/fa4a9648aef2c8ca8f4cd543429b24dc8feaa366", + "reference": "fa4a9648aef2c8ca8f4cd543429b24dc8feaa366", + "shasum": "" + }, + "require": { + "hoa/consistency": "~1.0", + "hoa/event": "~1.0" + }, + "require-dev": { + "hoa/test": "~2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Hoa\\Exception\\": "." + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Ivan Enderlin", + "email": "ivan.enderlin@hoa-project.net" + }, + { + "name": "Hoa community", + "homepage": "http://hoa-project.net/" + } + ], + "description": "The Hoa\\Exception library.", + "homepage": "http://hoa-project.net/", + "keywords": [ + "exception", + "library" + ], + "time": "2016-01-11 08:38:17" + }, + { + "name": "hoa/file", + "version": "0.16.01.11", + "source": { + "type": "git", + "url": "https://github.com/hoaproject/File.git", + "reference": "c96689d30c2268ee71d34b58a8d48c9ccb6f8b0e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/hoaproject/File/zipball/c96689d30c2268ee71d34b58a8d48c9ccb6f8b0e", + "reference": "c96689d30c2268ee71d34b58a8d48c9ccb6f8b0e", + "shasum": "" + }, + "require": { + "hoa/consistency": "~1.0", + "hoa/event": "~1.0", + "hoa/exception": "~1.0", + "hoa/iterator": "~2.0", "hoa/stream": "~0.0" }, "require-dev": { - "hoa/test": "~1.0" + "hoa/test": "~2.0" }, "type": "library", "extra": { @@ -1940,32 +2051,33 @@ "link", "temporary" ], - "time": "2015-11-09 06:55:20" + "time": "2016-01-11 09:07:45" }, { "name": "hoa/iterator", - "version": "1.15.10.29", + "version": "2.16.01.11", "source": { "type": "git", "url": "https://github.com/hoaproject/Iterator.git", - "reference": "a64ed9fd62579a34e4450134d6d1abdf77d54435" + "reference": "eed36f2ec8233f494fd4450d570453b9a84736da" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/hoaproject/Iterator/zipball/a64ed9fd62579a34e4450134d6d1abdf77d54435", - "reference": "a64ed9fd62579a34e4450134d6d1abdf77d54435", + "url": "https://api.github.com/repos/hoaproject/Iterator/zipball/eed36f2ec8233f494fd4450d570453b9a84736da", + "reference": "eed36f2ec8233f494fd4450d570453b9a84736da", "shasum": "" }, "require": { - "hoa/core": "~2.0" + "hoa/consistency": "~1.0", + "hoa/exception": "~1.0" }, "require-dev": { - "hoa/test": "~1.0" + "hoa/test": "~2.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.x-dev" + "dev-master": "2.x-dev" } }, "autoload": { @@ -1993,29 +2105,32 @@ "iterator", "library" ], - "time": "2015-10-29 21:37:16" + "time": "2016-01-11 09:13:46" }, { "name": "hoa/math", - "version": "0.15.10.26", + "version": "0.16.01.11", "source": { "type": "git", "url": "https://github.com/hoaproject/Math.git", - "reference": "62631c65d9a4f1b8bb4c4a3d6cdff0e8971d684e" + "reference": "9ddfa1a4bac94af5c2151c4b96be80b3a0209749" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/hoaproject/Math/zipball/62631c65d9a4f1b8bb4c4a3d6cdff0e8971d684e", - "reference": "62631c65d9a4f1b8bb4c4a3d6cdff0e8971d684e", + "url": "https://api.github.com/repos/hoaproject/Math/zipball/9ddfa1a4bac94af5c2151c4b96be80b3a0209749", + "reference": "9ddfa1a4bac94af5c2151c4b96be80b3a0209749", "shasum": "" }, "require": { - "hoa/compiler": "~2.0", - "hoa/core": "~2.0", - "hoa/iterator": "~1.0" + "hoa/compiler": "~3.0", + "hoa/consistency": "~1.0", + "hoa/exception": "~1.0", + "hoa/iterator": "~2.0", + "hoa/protocol": "~1.0", + "hoa/zformat": "~0.0" }, "require-dev": { - "hoa/test": "~1.0" + "hoa/test": "~2.0" }, "type": "library", "extra": { @@ -2055,27 +2170,89 @@ "sampler", "set" ], - "time": "2015-10-26 15:22:52" + "time": "2016-01-11 09:23:49" }, { - "name": "hoa/regex", - "version": "0.15.08.13", + "name": "hoa/protocol", + "version": "1.16.01.11", "source": { "type": "git", - "url": "https://github.com/hoaproject/Regex.git", - "reference": "2ef8a77ef3885ca202fcd9c31a8e54c44cd04232" + "url": "https://github.com/hoaproject/Protocol.git", + "reference": "97a33357e9f0827b75e19a78429d037fab18c1ce" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/hoaproject/Regex/zipball/2ef8a77ef3885ca202fcd9c31a8e54c44cd04232", - "reference": "2ef8a77ef3885ca202fcd9c31a8e54c44cd04232", + "url": "https://api.github.com/repos/hoaproject/Protocol/zipball/97a33357e9f0827b75e19a78429d037fab18c1ce", + "reference": "97a33357e9f0827b75e19a78429d037fab18c1ce", "shasum": "" }, "require": { - "hoa/core": "~2.0", + "hoa/consistency": "~1.0", + "hoa/exception": "~1.0" + }, + "require-dev": { + "hoa/test": "~2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Hoa\\Protocol\\": "." + }, + "files": [ + "Wrapper.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Ivan Enderlin", + "email": "ivan.enderlin@hoa-project.net" + }, + { + "name": "Hoa community", + "homepage": "http://hoa-project.net/" + } + ], + "description": "The Hoa\\Protocol library.", + "homepage": "http://hoa-project.net/", + "keywords": [ + "library", + "protocol", + "resource", + "stream", + "wrapper" + ], + "time": "2016-01-11 08:41:20" + }, + { + "name": "hoa/regex", + "version": "0.16.01.11", + "source": { + "type": "git", + "url": "https://github.com/hoaproject/Regex.git", + "reference": "a0e01a81fae0e7a325a5d958a269d611a5252690" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/hoaproject/Regex/zipball/a0e01a81fae0e7a325a5d958a269d611a5252690", + "reference": "a0e01a81fae0e7a325a5d958a269d611a5252690", + "shasum": "" + }, + "require": { + "hoa/consistency": "~1.0", + "hoa/exception": "~1.0", "hoa/math": "~0.0", - "hoa/ustring": "~3.0", - "hoa/visitor": "~1.0" + "hoa/protocol": "~1.0", + "hoa/ustring": "~4.0", + "hoa/visitor": "~2.0" }, "type": "library", "extra": { @@ -2109,35 +2286,36 @@ "library", "regex" ], - "time": "2015-08-13 06:48:47" + "time": "2016-01-11 09:36:00" }, { "name": "hoa/ruler", - "version": "1.15.11.09", + "version": "2.16.01.11", "source": { "type": "git", "url": "https://github.com/hoaproject/Ruler.git", - "reference": "9afc9ae032d40b6dc10bff85c9126cf516953925" + "reference": "34175a4ee1ffc28c7ee37032dded25ddd060b288" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/hoaproject/Ruler/zipball/9afc9ae032d40b6dc10bff85c9126cf516953925", - "reference": "9afc9ae032d40b6dc10bff85c9126cf516953925", + "url": "https://api.github.com/repos/hoaproject/Ruler/zipball/34175a4ee1ffc28c7ee37032dded25ddd060b288", + "reference": "34175a4ee1ffc28c7ee37032dded25ddd060b288", "shasum": "" }, "require": { - "hoa/compiler": "~2.0", - "hoa/core": "~2.0", + "hoa/compiler": "~3.0", + "hoa/consistency": "~1.0", + "hoa/exception": "~1.0", "hoa/file": "~0.0", - "hoa/visitor": "~1.0" + "hoa/visitor": "~2.0" }, "require-dev": { - "hoa/test": "~1.0" + "hoa/test": "~2.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.x-dev" + "dev-master": "2.x-dev" } }, "autoload": { @@ -2165,24 +2343,27 @@ "library", "ruler" ], - "time": "2015-11-09 06:58:52" + "time": "2016-01-11 09:39:31" }, { "name": "hoa/stream", - "version": "0.15.10.26", + "version": "0.16.01.11", "source": { "type": "git", "url": "https://github.com/hoaproject/Stream.git", - "reference": "011ab91d942f1d7096deade4c8a10fe57d51c5b3" + "reference": "06804e673281c6f1fec580345f489f4e9bf43981" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/hoaproject/Stream/zipball/011ab91d942f1d7096deade4c8a10fe57d51c5b3", - "reference": "011ab91d942f1d7096deade4c8a10fe57d51c5b3", + "url": "https://api.github.com/repos/hoaproject/Stream/zipball/06804e673281c6f1fec580345f489f4e9bf43981", + "reference": "06804e673281c6f1fec580345f489f4e9bf43981", "shasum": "" }, "require": { - "hoa/core": "~2.0" + "hoa/consistency": "~1.0", + "hoa/event": "~1.0", + "hoa/exception": "~1.0", + "hoa/protocol": "~1.0" }, "type": "library", "extra": { @@ -2223,27 +2404,28 @@ "stream", "wrapper" ], - "time": "2015-10-22 06:30:43" + "time": "2016-01-11 09:44:48" }, { "name": "hoa/ustring", - "version": "3.15.11.09", + "version": "4.16.01.11", "source": { "type": "git", "url": "https://github.com/hoaproject/Ustring.git", - "reference": "8506be4910212b1a2beb9014763a8a4fbd871001" + "reference": "9f76b9aae5901b4f476ef854e29ccd746d6899d2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/hoaproject/Ustring/zipball/8506be4910212b1a2beb9014763a8a4fbd871001", - "reference": "8506be4910212b1a2beb9014763a8a4fbd871001", + "url": "https://api.github.com/repos/hoaproject/Ustring/zipball/9f76b9aae5901b4f476ef854e29ccd746d6899d2", + "reference": "9f76b9aae5901b4f476ef854e29ccd746d6899d2", "shasum": "" }, "require": { - "hoa/core": "~2.0" + "hoa/consistency": "~1.0", + "hoa/exception": "~1.0" }, "require-dev": { - "hoa/test": "~1.0" + "hoa/test": "~2.0" }, "suggest": { "ext-iconv": "ext/iconv must be present (or a third implementation) to use Hoa\\Ustring::transcode().", @@ -2252,7 +2434,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.x-dev" + "dev-master": "4.x-dev" } }, "autoload": { @@ -2282,32 +2464,32 @@ "string", "unicode" ], - "time": "2015-11-09 06:44:33" + "time": "2016-01-11 09:51:34" }, { "name": "hoa/visitor", - "version": "1.15.08.17", + "version": "2.16.01.11", "source": { "type": "git", "url": "https://github.com/hoaproject/Visitor.git", - "reference": "e30bfff741f71979f6476a41548e34afe8053c67" + "reference": "cb21074b7eb89c3ac9f76d25c72671d579735ca9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/hoaproject/Visitor/zipball/e30bfff741f71979f6476a41548e34afe8053c67", - "reference": "e30bfff741f71979f6476a41548e34afe8053c67", + "url": "https://api.github.com/repos/hoaproject/Visitor/zipball/cb21074b7eb89c3ac9f76d25c72671d579735ca9", + "reference": "cb21074b7eb89c3ac9f76d25c72671d579735ca9", "shasum": "" }, "require": { - "hoa/core": "~2.0" + "hoa/consistency": "~1.0" }, "require-dev": { - "hoa/test": "~1.0" + "hoa/test": "~2.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.x-dev" + "dev-master": "2.x-dev" } }, "autoload": { @@ -2337,7 +2519,59 @@ "visit", "visitor" ], - "time": "2015-08-17 06:30:58" + "time": "2016-01-11 09:54:01" + }, + { + "name": "hoa/zformat", + "version": "0.16.01.11", + "source": { + "type": "git", + "url": "https://github.com/hoaproject/Zformat.git", + "reference": "fd4d4243c3f8e99db46a531bec3ce498667dd83a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/hoaproject/Zformat/zipball/fd4d4243c3f8e99db46a531bec3ce498667dd83a", + "reference": "fd4d4243c3f8e99db46a531bec3ce498667dd83a", + "shasum": "" + }, + "require": { + "hoa/consistency": "~1.0", + "hoa/exception": "~1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Hoa\\Zformat\\": "." + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Ivan Enderlin", + "email": "ivan.enderlin@hoa-project.net" + }, + { + "name": "Hoa community", + "homepage": "http://hoa-project.net/" + } + ], + "description": "The Hoa\\Zformat library.", + "homepage": "http://hoa-project.net/", + "keywords": [ + "library", + "parameter", + "zformat" + ], + "time": "2016-01-11 10:03:00" }, { "name": "htmlawed/htmlawed", @@ -2966,22 +3200,22 @@ }, { "name": "kphoen/rulerz", - "version": "0.16.2", + "version": "0.17.0", "source": { "type": "git", "url": "https://github.com/K-Phoen/rulerz.git", - "reference": "2b4fd796dadad204353e966b9f53040225ce6871" + "reference": "4ebd03bd801d17f108ab74f611b8ec1b430c909f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/K-Phoen/rulerz/zipball/2b4fd796dadad204353e966b9f53040225ce6871", - "reference": "2b4fd796dadad204353e966b9f53040225ce6871", + "url": "https://api.github.com/repos/K-Phoen/rulerz/zipball/4ebd03bd801d17f108ab74f611b8ec1b430c909f", + "reference": "4ebd03bd801d17f108ab74f611b8ec1b430c909f", "shasum": "" }, "require": { - "hoa/ruler": "~1.0", + "hoa/ruler": "~2.0", "php": ">=5.5", - "symfony/property-access": "~2.3" + "symfony/property-access": "~2.3|~3.0" }, "require-dev": { "behat/behat": "~3.0", @@ -3032,31 +3266,32 @@ "doctrine", "specification" ], - "time": "2015-12-07 22:24:24" + "time": "2016-01-13 16:55:19" }, { "name": "kphoen/rulerz-bundle", - "version": "0.11.0", + "version": "0.11.1", "source": { "type": "git", "url": "https://github.com/K-Phoen/RulerZBundle.git", - "reference": "dcaaed69d8252fa1e3a25802f8cf697947570778" + "reference": "57416b75d70d21c10c1f1c31b9fd6d2a7f82a277" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/K-Phoen/RulerZBundle/zipball/dcaaed69d8252fa1e3a25802f8cf697947570778", - "reference": "dcaaed69d8252fa1e3a25802f8cf697947570778", + "url": "https://api.github.com/repos/K-Phoen/RulerZBundle/zipball/57416b75d70d21c10c1f1c31b9fd6d2a7f82a277", + "reference": "57416b75d70d21c10c1f1c31b9fd6d2a7f82a277", "shasum": "" }, "require": { "kphoen/rulerz": "~0.1, >=0.13.0", - "symfony/framework-bundle": "~2.3|~3.0", - "symfony/validator": "~2.3|~3.0" + "symfony/framework-bundle": "~2.5|~3.0", + "symfony/validator": "~2.5|~3.0" }, "require-dev": { "matthiasnoback/symfony-dependency-injection-test": "~0.7", "mikey179/vfsstream": "~1.0", - "phpunit/phpunit": "~4.8" + "phpunit/phpunit": "~4.8", + "symfony/phpunit-bridge": "~2.7|~3.0" }, "type": "symfony-bundle", "autoload": { @@ -3082,7 +3317,7 @@ "rulerz", "specification" ], - "time": "2015-11-13 13:00:14" + "time": "2016-01-11 13:54:58" }, { "name": "kriswallsmith/assetic", @@ -3163,31 +3398,32 @@ }, { "name": "lexik/form-filter-bundle", - "version": "v4.0.2", + "version": "v5.0.0", "source": { "type": "git", "url": "https://github.com/lexik/LexikFormFilterBundle.git", - "reference": "d6081d308b71e14509602722c78d28801e4ed78a" + "reference": "dbc3c81600d2334a3408b37dccc3627d2019472c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/lexik/LexikFormFilterBundle/zipball/d6081d308b71e14509602722c78d28801e4ed78a", - "reference": "d6081d308b71e14509602722c78d28801e4ed78a", + "url": "https://api.github.com/repos/lexik/LexikFormFilterBundle/zipball/dbc3c81600d2334a3408b37dccc3627d2019472c", + "reference": "dbc3c81600d2334a3408b37dccc3627d2019472c", "shasum": "" }, "require": { - "doctrine/orm": "~2.2", - "php": ">=5.3.2", - "symfony/form": "~2.7", - "symfony/framework-bundle": "~2.7" + "doctrine/orm": "^2.4.8", + "php": ">=5.5.9", + "symfony/form": "~2.8|~3.0", + "symfony/framework-bundle": "~2.8|~3.0" }, "require-dev": { + "doctrine/mongodb-odm-bundle": "~3.0", "phpunit/phpunit": "~3.7" }, "type": "symfony-bundle", "extra": { "branch-alias": { - "dev-master": "4.x.x-dev" + "dev-master": "5.x.x-dev" } }, "autoload": { @@ -3218,7 +3454,7 @@ "filter", "form" ], - "time": "2015-10-20 12:45:52" + "time": "2016-01-11 17:05:05" }, { "name": "liip/theme-bundle", @@ -3488,17 +3724,17 @@ }, { "name": "nelmio/api-doc-bundle", - "version": "2.11.1", + "version": "2.11.2", "target-dir": "Nelmio/ApiDocBundle", "source": { "type": "git", "url": "https://github.com/nelmio/NelmioApiDocBundle.git", - "reference": "19d4e37365edd5104e31662a2d3b510d92a7e78a" + "reference": "1ae2cfa9a50279d722d6b6e7b02322cef948d55d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nelmio/NelmioApiDocBundle/zipball/19d4e37365edd5104e31662a2d3b510d92a7e78a", - "reference": "19d4e37365edd5104e31662a2d3b510d92a7e78a", + "url": "https://api.github.com/repos/nelmio/NelmioApiDocBundle/zipball/1ae2cfa9a50279d722d6b6e7b02322cef948d55d", + "reference": "1ae2cfa9a50279d722d6b6e7b02322cef948d55d", "shasum": "" }, "require": { @@ -3568,7 +3804,7 @@ "documentation", "rest" ], - "time": "2015-12-08 13:19:42" + "time": "2015-12-16 15:17:51" }, { "name": "nelmio/cors-bundle", @@ -3696,16 +3932,16 @@ }, { "name": "paragonie/random_compat", - "version": "1.1.4", + "version": "1.1.5", "source": { "type": "git", "url": "https://github.com/paragonie/random_compat.git", - "reference": "d762ee5b099a29044603cd4649851e81aa66cb47" + "reference": "dd8998b7c846f6909f4e7a5f67fabebfc412a4f7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/paragonie/random_compat/zipball/d762ee5b099a29044603cd4649851e81aa66cb47", - "reference": "d762ee5b099a29044603cd4649851e81aa66cb47", + "url": "https://api.github.com/repos/paragonie/random_compat/zipball/dd8998b7c846f6909f4e7a5f67fabebfc412a4f7", + "reference": "dd8998b7c846f6909f4e7a5f67fabebfc412a4f7", "shasum": "" }, "require": { @@ -3740,7 +3976,7 @@ "pseudorandom", "random" ], - "time": "2015-12-10 14:48:13" + "time": "2016-01-06 13:31:20" }, { "name": "phpcollection/phpcollection", @@ -5340,16 +5576,16 @@ }, { "name": "twig/twig", - "version": "v1.23.1", + "version": "v1.23.3", "source": { "type": "git", "url": "https://github.com/twigphp/Twig.git", - "reference": "d9b6333ae8dd2c8e3fd256e127548def0bc614c6" + "reference": "ae53fc2c312fdee63773b75cb570304f85388b08" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/twigphp/Twig/zipball/d9b6333ae8dd2c8e3fd256e127548def0bc614c6", - "reference": "d9b6333ae8dd2c8e3fd256e127548def0bc614c6", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/ae53fc2c312fdee63773b75cb570304f85388b08", + "reference": "ae53fc2c312fdee63773b75cb570304f85388b08", "shasum": "" }, "require": { @@ -5397,7 +5633,7 @@ "keywords": [ "templating" ], - "time": "2015-11-05 12:49:06" + "time": "2016-01-11 14:02:19" }, { "name": "wallabag/php-mobi", @@ -6617,16 +6853,16 @@ }, { "name": "sensio/generator-bundle", - "version": "v3.0.4", + "version": "v3.0.5", "source": { "type": "git", "url": "https://github.com/sensiolabs/SensioGeneratorBundle.git", - "reference": "e8d4db2fd6cd61e62208bda8f4f629e557f6acef" + "reference": "5274eafa251359087230bade2ff35dd6cec2e530" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/zipball/e8d4db2fd6cd61e62208bda8f4f629e557f6acef", - "reference": "e8d4db2fd6cd61e62208bda8f4f629e557f6acef", + "url": "https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/zipball/5274eafa251359087230bade2ff35dd6cec2e530", + "reference": "5274eafa251359087230bade2ff35dd6cec2e530", "shasum": "" }, "require": { @@ -6665,7 +6901,7 @@ } ], "description": "This bundle generates code for you", - "time": "2015-12-28 16:09:21" + "time": "2016-01-05 16:30:36" }, { "name": "symfony/phpunit-bridge", From 27e475a9412b0b462da2ddff641fddbeac5c165e Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Wed, 13 Jan 2016 22:53:36 +0100 Subject: [PATCH 11/20] Fix Pocket generateUrl parameters --- src/Wallabag/ImportBundle/Controller/PocketController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Wallabag/ImportBundle/Controller/PocketController.php b/src/Wallabag/ImportBundle/Controller/PocketController.php index 72dc2696a..7aee302f5 100644 --- a/src/Wallabag/ImportBundle/Controller/PocketController.php +++ b/src/Wallabag/ImportBundle/Controller/PocketController.php @@ -24,12 +24,12 @@ class PocketController extends Controller public function authAction() { $requestToken = $this->get('wallabag_import.pocket.import') - ->getRequestToken($this->generateUrl('import', UrlGeneratorInterface::ABSOLUTE_URL)); + ->getRequestToken($this->generateUrl('import', array(), UrlGeneratorInterface::ABSOLUTE_URL)); $this->get('session')->set('import.pocket.code', $requestToken); return $this->redirect( - 'https://getpocket.com/auth/authorize?request_token='.$requestToken.'&redirect_uri='.$this->generateUrl('import_pocket_callback', UrlGeneratorInterface::ABSOLUTE_URL), + 'https://getpocket.com/auth/authorize?request_token='.$requestToken.'&redirect_uri='.$this->generateUrl('import_pocket_callback', array(), UrlGeneratorInterface::ABSOLUTE_URL), 301 ); } From c38d27d4216bf74d6d3ae8f8f22d68923418ad80 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Thu, 14 Jan 2016 13:46:30 +0100 Subject: [PATCH 12/20] Update to friendsofsymfony/oauth-server-bundle@1.5.0-BETA --- composer.lock | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/composer.lock b/composer.lock index 7fd15a4cf..3740d4ef0 100644 --- a/composer.lock +++ b/composer.lock @@ -983,16 +983,16 @@ }, { "name": "friendsofsymfony/oauth-server-bundle", - "version": "dev-master", + "version": "1.5.0-BETA", "source": { "type": "git", "url": "https://github.com/FriendsOfSymfony/FOSOAuthServerBundle.git", - "reference": "2cf6dd8326fd2ca223108a1578d2c16f0544fa86" + "reference": "a67c26e3a37cd6a63f75e2607418dd9247ed741b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/FriendsOfSymfony/FOSOAuthServerBundle/zipball/2cf6dd8326fd2ca223108a1578d2c16f0544fa86", - "reference": "2cf6dd8326fd2ca223108a1578d2c16f0544fa86", + "url": "https://api.github.com/repos/FriendsOfSymfony/FOSOAuthServerBundle/zipball/a67c26e3a37cd6a63f75e2607418dd9247ed741b", + "reference": "a67c26e3a37cd6a63f75e2607418dd9247ed741b", "shasum": "" }, "require": { @@ -1049,7 +1049,7 @@ "oauth2", "server" ], - "time": "2016-01-13 19:46:44" + "time": "2016-01-14 12:20:34" }, { "name": "friendsofsymfony/oauth2-php", @@ -1820,16 +1820,16 @@ }, { "name": "hoa/consistency", - "version": "1.16.01.11", + "version": "1.16.01.14", "source": { "type": "git", "url": "https://github.com/hoaproject/Consistency.git", - "reference": "c7919e409ca68858f8cceadb7565b9f622575249" + "reference": "7656b971a8248a8d314ed0c5bb0668936438f62a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/hoaproject/Consistency/zipball/c7919e409ca68858f8cceadb7565b9f622575249", - "reference": "c7919e409ca68858f8cceadb7565b9f622575249", + "url": "https://api.github.com/repos/hoaproject/Consistency/zipball/7656b971a8248a8d314ed0c5bb0668936438f62a", + "reference": "7656b971a8248a8d314ed0c5bb0668936438f62a", "shasum": "" }, "require": { @@ -1879,7 +1879,7 @@ "keyword", "library" ], - "time": "2016-01-11 08:25:25" + "time": "2016-01-14 10:26:48" }, { "name": "hoa/event", @@ -5328,16 +5328,16 @@ }, { "name": "symfony/symfony", - "version": "v2.8.1", + "version": "v2.8.2", "source": { "type": "git", "url": "https://github.com/symfony/symfony.git", - "reference": "8956ed50a44c5c4e02f2176c0773e24487477b09" + "reference": "f3e6a82bcbea4db3b56df08e491e20a1faae82b5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/symfony/zipball/8956ed50a44c5c4e02f2176c0773e24487477b09", - "reference": "8956ed50a44c5c4e02f2176c0773e24487477b09", + "url": "https://api.github.com/repos/symfony/symfony/zipball/f3e6a82bcbea4db3b56df08e491e20a1faae82b5", + "reference": "f3e6a82bcbea4db3b56df08e491e20a1faae82b5", "shasum": "" }, "require": { @@ -5457,7 +5457,7 @@ "keywords": [ "framework" ], - "time": "2015-12-26 15:56:52" + "time": "2016-01-14 12:01:11" }, { "name": "tecnickcom/tcpdf", @@ -6905,16 +6905,16 @@ }, { "name": "symfony/phpunit-bridge", - "version": "v2.8.1", + "version": "v2.8.2", "source": { "type": "git", "url": "https://github.com/symfony/phpunit-bridge.git", - "reference": "2deb2ccbe184948ae4e85e7b99e962738d3d2d69" + "reference": "855dc0e829fad123966347612b4183e307338c11" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/2deb2ccbe184948ae4e85e7b99e962738d3d2d69", - "reference": "2deb2ccbe184948ae4e85e7b99e962738d3d2d69", + "url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/855dc0e829fad123966347612b4183e307338c11", + "reference": "855dc0e829fad123966347612b4183e307338c11", "shasum": "" }, "require": { @@ -6956,7 +6956,7 @@ ], "description": "Symfony PHPUnit Bridge", "homepage": "https://symfony.com", - "time": "2015-12-11 08:57:52" + "time": "2016-01-06 09:59:23" } ], "aliases": [], From 1d405d0e62a708928bccd2222ebd89d4804231f9 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Thu, 14 Jan 2016 14:10:33 +0100 Subject: [PATCH 13/20] Remove some commented code --- .travis.yml | 9 --------- COPYING.md | 38 +++++++++++++++++++------------------- CREDITS.md | 3 +-- app/config/config.yml | 6 ------ app/config/config_dev.yml | 8 -------- phpunit.xml.dist | 6 ------ 6 files changed, 20 insertions(+), 50 deletions(-) diff --git a/.travis.yml b/.travis.yml index 287369e33..07d66f881 100644 --- a/.travis.yml +++ b/.travis.yml @@ -43,17 +43,8 @@ before_script: - if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi; # disable xdebug since we don't use code-coverage for now - if [[ $TRAVIS_PHP_VERSION != '5.6' && $TRAVIS_PHP_VERSION != 'hhvm' && $TRAVIS_PHP_VERSION != '7.0' ]]; then phpenv config-rm xdebug.ini; fi - # build coverage only on one build, to speed up results feedbacks - # - if [[ "$TRAVIS_PHP_VERSION" = "5.6" ]]; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover"; else PHPUNIT_FLAGS=""; fi; - if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag;' -U postgres; fi; script: - ant prepare-$DB - bin/phpunit -v - -# after_script: - # - | - # if [ $TRAVIS_PHP_VERSION = '5.6' ]; then - # wget https://scrutinizer-ci.com/ocular.phar - # php ocular.phar code-coverage:upload --format=php-clover coverage.clover - # fi diff --git a/COPYING.md b/COPYING.md index b30299fe4..bc5be3414 100644 --- a/COPYING.md +++ b/COPYING.md @@ -1,19 +1,19 @@ -Copyright (c) 2013-2015 Nicolas Lœuillet - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished -to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +Copyright (c) 2013-2016 Nicolas Lœuillet + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished +to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/CREDITS.md b/CREDITS.md index e3916170f..eb2096e0f 100644 --- a/CREDITS.md +++ b/CREDITS.md @@ -2,5 +2,4 @@ wallabag is mainly developed by [Nicolas Lœuillet](https://github.com/nicosomb) Thank you so much to [@tcitworld](https://github.com/tcitworld) and [@j0k3r](https://github.com/j0k3r). -Thank you [to others contributors](https://github.com/wallabag/wallabag/graphs/contributors -). +Thank you [to others contributors](https://github.com/wallabag/wallabag/graphs/contributors). diff --git a/app/config/config.yml b/app/config/config.yml index 5bc16dd9b..5fac31929 100644 --- a/app/config/config.yml +++ b/app/config/config.yml @@ -170,14 +170,8 @@ liip_theme: autodetect_theme: wallabag_core.helper.detect_active_theme path_patterns: - # app_resource: - # - %%app_path%%/views/themes/%%current_theme%%/%%template%% - # - %%app_path%%/views/%%template%% bundle_resource: - %%bundle_path%%/Resources/views/themes/%%current_theme%%/%%template%% - # bundle_resource_dir: - # - %%dir%%/views/themes/%%current_theme%%/%%bundle_name%%/%%template%% - # - %%dir%%/views/%%bundle_name%%/%%override_path%% fos_user: db_driver: orm diff --git a/app/config/config_dev.yml b/app/config/config_dev.yml index 205e0f66b..116dd0d5b 100644 --- a/app/config/config_dev.yml +++ b/app/config/config_dev.yml @@ -32,14 +32,6 @@ monolog: VERBOSITY_VERY_VERBOSE: NOTICE VERBOSITY_DEBUG: DEBUG channels: ["doctrine"] - # uncomment to get logging in your browser - # you may have to allow bigger header sizes in your Web server configuration - #firephp: - # type: firephp - # level: info - #chromephp: - # type: chromephp - # level: info assetic: use_controller: true diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 85fa964b8..0e8cc8ebb 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -20,12 +20,6 @@ - From 73cd160bfc6e4a1b88f2117eb0c097a91ac5c753 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Thu, 14 Jan 2016 18:15:07 +0100 Subject: [PATCH 14/20] Switch to Symfony 3 structure --- .gitignore | 23 +++++++++------------- app/AppKernel.php | 21 +++++++++++++++++--- app/autoload.php | 2 +- app/config/config.yml | 3 ++- app/config/config_dev.yml | 5 +++-- {app => bin}/console | 6 +++--- bin/doctrine | 1 + bin/doctrine-dbal | 1 + bin/doctrine-migrations | 1 + bin/doctrine.php | 1 + bin/poche.sqlite | Bin 393216 -> 0 bytes bin/security-checker | 1 + app/check.php => bin/symfony_requirements | 3 ++- {app => var}/SymfonyRequirements.php | 0 {app/logs => var/cache}/.gitkeep | 0 var/logs/.gitkeep | 0 var/sessions/.gitkeep | 0 web/.htaccess | 22 ++++++++++++++++----- web/app.php | 2 +- web/app_dev.php | 2 +- web/robots.txt | 4 +++- 21 files changed, 65 insertions(+), 33 deletions(-) rename {app => bin}/console (78%) mode change 100755 => 100644 create mode 120000 bin/doctrine create mode 120000 bin/doctrine-dbal create mode 120000 bin/doctrine-migrations create mode 120000 bin/doctrine.php delete mode 100644 bin/poche.sqlite create mode 120000 bin/security-checker rename app/check.php => bin/symfony_requirements (97%) rename {app => var}/SymfonyRequirements.php (100%) rename {app/logs => var/cache}/.gitkeep (100%) create mode 100644 var/logs/.gitkeep create mode 100644 var/sessions/.gitkeep diff --git a/.gitignore b/.gitignore index f88370d78..b6d6aa5d5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,25 +1,20 @@ -# Cache and logs (Symfony2) -/app/cache/* -/app/logs/* -!app/cache/.gitkeep -!app/logs/.gitkeep - -# Cache and logs (Symfony3) +# Cache, logs & sessions +/var/* +!/var/cache /var/cache/* -/var/logs/* !var/cache/.gitkeep +!/var/logs +/var/logs/* !var/logs/.gitkeep +!/var/sessions +/var/sessions/* +!var/sessions/.gitkeep +!var/SymfonyRequirements.php # Parameters /app/config/parameters.yml -/app/config/parameters.ini # Managed by Composer -/app/bootstrap.php.cache -/var/bootstrap.php.cache -/bin/* -!bin/console -!bin/symfony_requirements /vendor/ # Assets and user uploads diff --git a/app/AppKernel.php b/app/AppKernel.php index d97842f90..7e76a9e90 100644 --- a/app/AppKernel.php +++ b/app/AppKernel.php @@ -7,7 +7,7 @@ class AppKernel extends Kernel { public function registerBundles() { - $bundles = array( + $bundles = [ new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), new Symfony\Bundle\SecurityBundle\SecurityBundle(), new Symfony\Bundle\TwigBundle\TwigBundle(), @@ -33,9 +33,9 @@ class AppKernel extends Kernel new KPhoen\RulerZBundle\KPhoenRulerZBundle(), new Wallabag\ImportBundle\WallabagImportBundle(), new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(), - ); + ]; - if (in_array($this->getEnvironment(), array('dev', 'test'), true)) { + if (in_array($this->getEnvironment(), ['dev', 'test'], true)) { $bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle(); $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle(); $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle(); @@ -46,6 +46,21 @@ class AppKernel extends Kernel return $bundles; } + public function getRootDir() + { + return __DIR__; + } + + public function getCacheDir() + { + return dirname(__DIR__).'/var/cache/'.$this->getEnvironment(); + } + + public function getLogDir() + { + return dirname(__DIR__).'/var/logs'; + } + public function registerContainerConfiguration(LoaderInterface $loader) { $loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml'); diff --git a/app/autoload.php b/app/autoload.php index 70526bb5e..fa582ecd0 100644 --- a/app/autoload.php +++ b/app/autoload.php @@ -8,6 +8,6 @@ use Composer\Autoload\ClassLoader; */ $loader = require __DIR__.'/../vendor/autoload.php'; -AnnotationRegistry::registerLoader(array($loader, 'loadClass')); +AnnotationRegistry::registerLoader([$loader, 'loadClass']); return $loader; diff --git a/app/config/config.yml b/app/config/config.yml index 5fac31929..133fc12fe 100644 --- a/app/config/config.yml +++ b/app/config/config.yml @@ -21,7 +21,8 @@ framework: trusted_proxies: ~ session: # handler_id set to null will use default session handler from php.ini - handler_id: ~ + handler_id: session.handler.native_file + save_path: "%kernel.root_dir%/../var/sessions/%kernel.environment%" fragments: ~ http_method_override: true diff --git a/app/config/config_dev.yml b/app/config/config_dev.yml index 116dd0d5b..6b077fdbd 100644 --- a/app/config/config_dev.yml +++ b/app/config/config_dev.yml @@ -17,13 +17,14 @@ monolog: type: stream path: "%kernel.logs_dir%/%kernel.environment%.log" level: debug + channels: [!event] console: type: console bubble: false verbosity_levels: VERBOSITY_VERBOSE: INFO VERBOSITY_VERY_VERBOSE: DEBUG - channels: ["!doctrine"] + channels: [!event, !doctrine] console_very_verbose: type: console bubble: false @@ -31,7 +32,7 @@ monolog: VERBOSITY_VERBOSE: NOTICE VERBOSITY_VERY_VERBOSE: NOTICE VERBOSITY_DEBUG: DEBUG - channels: ["doctrine"] + channels: [doctrine] assetic: use_controller: true diff --git a/app/console b/bin/console old mode 100755 new mode 100644 similarity index 78% rename from app/console rename to bin/console index 3b4c367c9..49247c94d --- a/app/console +++ b/bin/console @@ -14,11 +14,11 @@ set_time_limit(0); /** * @var Composer\Autoload\ClassLoader $loader */ -$loader = require __DIR__.'/autoload.php'; +$loader = require __DIR__.'/../app/autoload.php'; $input = new ArgvInput(); -$env = $input->getParameterOption(array('--env', '-e'), getenv('SYMFONY_ENV') ?: 'dev'); -$debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption(array('--no-debug', '')) && $env !== 'prod'; +$env = $input->getParameterOption(['--env', '-e'], getenv('SYMFONY_ENV') ?: 'dev'); +$debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption(['--no-debug', '']) && $env !== 'prod'; if ($debug) { Debug::enable(); diff --git a/bin/doctrine b/bin/doctrine new file mode 120000 index 000000000..0f72e36f9 --- /dev/null +++ b/bin/doctrine @@ -0,0 +1 @@ +../vendor/doctrine/orm/bin/doctrine \ No newline at end of file diff --git a/bin/doctrine-dbal b/bin/doctrine-dbal new file mode 120000 index 000000000..110e93c53 --- /dev/null +++ b/bin/doctrine-dbal @@ -0,0 +1 @@ +../vendor/doctrine/dbal/bin/doctrine-dbal \ No newline at end of file diff --git a/bin/doctrine-migrations b/bin/doctrine-migrations new file mode 120000 index 000000000..7184da719 --- /dev/null +++ b/bin/doctrine-migrations @@ -0,0 +1 @@ +../vendor/doctrine/migrations/bin/doctrine-migrations \ No newline at end of file diff --git a/bin/doctrine.php b/bin/doctrine.php new file mode 120000 index 000000000..b22b74da5 --- /dev/null +++ b/bin/doctrine.php @@ -0,0 +1 @@ +../vendor/doctrine/orm/bin/doctrine.php \ No newline at end of file diff --git a/bin/poche.sqlite b/bin/poche.sqlite deleted file mode 100644 index f2b79b68f2480a6fa0ec923f225b6a24c880ed54..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 393216 zcmeI*Pi!3Nncs2Bns`PU%U&cf1Y<9?Tue-@*=&*eJ2M*E9E#FthN5JNnz5XNQ0%U5 zme}3ZQ`JR^vd7Xa0t5(BIF(V3~oQ%8_~vwe@K2 zhW>YFbv3%PcJ0S^R%Ql>$bA9F3wdL7p5ciX4edQj%zWz4-F;kJ3@EzP2(CCzy@W;$EJ_V*z#Lm8CnY>(OcdRVUuAZ6<#s z{E^NVy}x?n{pS!*eb${i^EF1k-u~L>Z=QJlW%|yf_`rOsDPX7sX?AXmsxn?`nKUv(dB#%5?Pc(yiqWmTuMKKAQIH znD!ny^=M)0>DTCh-}$XN-)p~kI(6Y|ALzpGee>i;Z+$6r71jZ~PN?6ydGwnnfAE7N zcb&ZIp(6RTOa`sw(2uVj=!8SRoH5N=ee%?!e>U~){r3Oh*f&r9@Ov+7Sm?-m3*qar zAH4Au-aH@P{D#iadGsHqn)~PaD&Kvb@ucIuc0zw0dGtS~^oRctKmY**5I_I{1Q0*~ z0R#|0009ILKmY**5I_I{1Q0*~0R#|0009ILKmY**5I_I{1Q0*~0R#|0009ILKmY** z5I_I{1Q0*~0R#|0009ILKmY**5I_I{1Q0*~0R#|0009ILKmY**5I_I{1Q0*~0R#|0 z009ILKmY**5I_I{1Q0*~0R#|0009ILKmY**5I_I{1Q0*~0R#|ubp%cvIXd+R*)SOt zS(&$z(fA|jp1Q0*~0R#|0009ILKmY**5I_I{1Q0*~0R#|0009ILKmY** z5I_I{1Q0*~0R#|0009ILKmY**5I_I{1Q0*~0R#|0009ILKmY**5I_I{1Q0*~0R#|0 z009ILKmY**5I_I{1Q0*~0R#|0009ILKmY**5I_I{1Q0*~0R#|0009ILKmY**5I_I{ z1Q0*~0R#|0009ILKmdVPQsC&(W5-VD%8x$!%hw+L_ecNp(O9p0=xg{piu}`WsH@ha->v*OdP79|8yVEzY-gx8lf73s9C6D{@M%9 z%IzdBqaw+-(^eAo(v3Wcl2O#n<58K8Hb( zM$s@XqP?fB&3HK6dm4ROCc4;>F0Pdgimcy{N2wjve;y?ReYjmlpClVmQj8)sF;6#o z;Xtj;JR4-g&A96_!#E$Mt+JQyeNmmMlb6LPk9A?uC@V+N-jk>oN1ZG!o;`U-XB~*Q ztPUpd!kVT_DxwY1x3Y2=&5ZJF`0U9KPg#RTNq<;G$v~aa)rIM3$%A1p%ac6nB}LRv z2l_iM^R#0vP`lM_vCf?KlG$k2phih+q~=7r@L@XAThyVQw5L zQRd!ia~Z{YNgve7`|&_#bJ6v^U-y%!NW*8;p6X-9+m3Y+y(D@l<8;uCI{Dtyfli;A zwm#B{TWXXaQLPe0OFbb!zm9g+vZf7--PUHNuqyS#r)3%qv%x6sq}B{IExa`zbd%hB zXi)a|p5}gnVOIV6eo`7qOL3L-L^Ki=TzX>n@Sn{H8bp#AEPPR|BGntL1$dqUaVd+MX=@WmEo zx~(f!EGhQm{)Sn)k`NVe3fWewb6G$tbNDFeCBJ?AXO}kesJVElsiAnOIUEnmo7O$v z3+-$$5cr0D@!{9f5nBpY|E&g2H?h%BwDNMOaZ(l`WOR~#oGX+XLmPVP4sX5(oqnfY zEgJ2tC{i8U0!KmH%KF1B*Em$T-B&vo&YiE$qOou1(C2jZdrw15P9D*RPbaW7F$EtGkamM&URtj`pgg@Hb9$Jka_c*FPkqx+?T!;Yj;p;*wU zpSAbrNmtDfjD^p3DvnG8vO9=%?P^Ii1Qi|+1*m?_bh`R9I=W@e)RLu!jqzHL>SZ-H z_pV3_jZ#aH<23d1I9O8ZQmRvzdvcz&_)&X0v4)mTIT;~gxYgs&`c!jBoQ@(Tm6lzd z6s(<=yLzRK2Bo$K)+HLAwopFx59{l!+ z_M5)4q)$9OMdT>9Z$q;bUz#6sr3YQ~I18P!3-n}M9i~dbLuII3Swu%rxN2-#zDYf9 zE!J#~v$mMXrD7N>5|yfo_oiF((~If`4Zqkk-=(Jgc5#0)59u)86_`(V7Cbhi>7W)I zia8|~#i3qnryeZB5P`-eMZv^qxr15CM8oDhB}}+ z_TP{D!*`?08e$d-o}){9Q!m-p5UkHS7p*AfbUuqzo3yQ277apC1?dHgM0NbN+e_*M zC1mfPP$|?h-gZwNHjtEre{HTBR+ipF)na+klX-}4MV5^7T5#JKj(U4fW>teJ0ejylU7mW$yt!(2 zHdA`q2BUXQA(E6#Mw2Eg(|?i!_H-yM|mON`?vZ|C)S!_za>70)K#_ztraXv$4Vsw zJJ4LTtRq>4UDfu{>Yx9zO!XVZTPxL)K(mnu$IF1dr?Wn{Tk_lW^2tVn@|l7ov^kV1 zx)z0HD3JWREU=SuQ_h;T(%ESI;wN#hXUm_tm+<@YrN}y7Hfr*-acx&$hKkxcSXZMK zDvRiR+lktz-ybdyzv7B%zIkT8c{NGAkW`V>Zq)5NTtw=eJ>|6625H_>4Oazj5f%YH z5G|-T6};*w?;PcYPK;(8`9EHj=1rkY^3M zbkE^d-;a`)A+9QmC5qJ$aXQFYbvA^HmYhnJq1prV-Ln7S)fj^2***g}tq{LblYnag9N; zV-uh+Q|vD_sZ2B!eBRN5$SW_U8ee0@y7Io29wM?SzZDO)w$h<>2vr}hmJYT(iP>c5 zFK7j#HBmT1xEx(#)==zhBzbo{XVuqOb>^~W?rNq8Yhhnhs0h~jG`g<3DtXwjv2X2q zdDLrw9oQx~9L}LV^h*r+Q+bxV30kc{Z?Rs|T1;vN}hHs7`an4m3WFEzJ6HPjkkf`aqYq z${?*}^HXz?FRQGQ*hp+~pgG6V>;8v5nX4#ystlokt%hNq-B-7Il2GF`Em>e#x~L23 zFskdyEL7DtaaC24_9^V$Hj1pCQd%FkwhAYmPIG}quARt6-&O4%mD)}jS&1c-daP>V z^a6DM)V7I}4Xq;AG}TIcC24`KCND;9BKOS#>x530YsbQlS?!yQO09$I#bw=1>P&42rMAmt zWo8_XcvacvL8``U+vCN-w=#&5PA3`7MIYJ(WA&=-zStg#bzHCPYVGG;Hjyt5jJQHu zb6sbi(`TCl?U!kHW}~UKPf;|6r3QIJX(cOF7#tpeFM5v+!!X~5C6qZ0Y?~IoNmvb!J)#+fmq)x>vYrlh!(X><-`1#938wL;;VWHB-C4P*YDdcz z*H)1m_KEbkGvPS`}n@TXmo>WvkNBGL1#khRRUeYzQkWn=pK(VC2?l#bF-r{VSCT z+5nx{Xi+k;Nki|_7EYKW1aB*#j%AR&4Rml{i`v?)&??`mMvoT_WP4j#*mg&qae5Yms#a{k`w~MLQJp08(0wCqJ(U)! zzV^0#Bi~3Icb3hpI-S+D)&z?wEv9U<#kM!C|CHry{KbQ|ZDCqi+CG3vER%|XqLgHUJLglmhEWUw7llrQn)?My2HU;6lllC4AyQO^D0T(p`*3umJHv8p9Y z0oB}{CwsptE$=3p;d}OWQ{J{j$#D)DlkPG92wBHs-Y9o$dWQ+ec7H_iRtUZk-x#mu9y{ zI(ec5r5!m9IZeIRo%XWdG*Y?qzIIwQ`PMffbS&)-Z`iUrq+T1P?L13uKw9ru&bQ$c zKH-~N>PQXRmUh(by&eY>$QgGv-`u{*4x9a-e!E5XMX^x=X{-0&m=zlRXZvWlfv}&SIaWhkgz)n zz9p+dNbwMQXV;2I3)YUd0WFnVs@&2$m0h*0sFu$oOM|wQwV~(3$rFQ3&^Ax_D;5|^ z7P*I( zsbQe?ZZG*tA8KmjQuBo6=;5YrOgtB4-fp#XD~v;bQ_);Ff8pZ7#q(!>w08P*^W5o$ z3k#n! zwYujw8W$f9m$JAK&;NAw`kMXj%-eb6!sfZ#OPB2+A9Pmj%axt7(H?!gGq~QkSZ3E( z<{KZbJp4)0xcceYPj?${FMRyr&0CG-2g&?)JZ#FI-;Gk-MMX+HS<_ zXD|NveZ8gq@mYW8^7*rkm0R7Rn(*=6t5@6h<-_;qttI)Dt;YEeA8cOO6vEp#%OC5F zo$C(-d1pRVOXly~e*eMbU`__pi=Ws89`}_%@{L_jcs81Bm90HQ4OQEI*D^gU`h0KL zwm<4=Q~78-H`;i6-&R$z-!7>(?vsXX#8;(|a^JS)J=IN~Cc`ZUkIhhP#$8+YJbyPX z+<~dz6DEFJD36Ov{b2FvOTwz4uP2Srben_i$p9bNUftG>7*Aw%4%LFuZZCv_QvTB(C&5hUnJ~LbT z3wK4U&HBT+dz=nze{W7Rdh-uQ+3;p}+3uxG_O0Eu^+Vc*sB&JtRtyQ-N)(j_6Dvn` zvM21iEZ=)pHHH;(7tfp>ua&~`T*n7ij$hZds!vhT#UE8o+s@X}T3l7d&ws+04?l3^#= z@T&=T-0D@ZO*az@3lC52C8{1DDJj`~`I)7G&CqS1X|<`I?G({X`<2#c_UYt-wiIk~ z)>>SvqE7a}-g!04x(cIZJ$%tuey?zreJf!i5On+d3$@jb)9Got*3xf(TQEF-;MZb1 zqBe{9THU@G-~F@Rw2n|tR|2)W&(Vw)e7^DBXz6)`@i6h*h?8g1+_tR3#x^EGsg`vW z3A(#ydfJ57%?q#kbnnnNA@%ZxHeSYE&I!co>S09+$q~q-}^%Mmesa{ zJ6o!!LZQ7sLwoJ(o5Xfs#3nu8<-{%#aEMhz`AY1B`dOjVs3w4V z2hDcjwp9n&IJHX~w@-JcLKtaj{G#p7Yhg{Pa}E{g?JS&n|9lG8{i}Cqx1} zJ%@B)H^4L{_-OQjs{`%l8yg!M$|KwA*Fxq%6SRA(v~5SRfhqm)kdyFjuWu0UnuRTU ze{?G>CA8@moaZATL;Wcrl`G z_Z!6?%=-~FZleW#s6&)nbvWHc(QO91)vPsyt+SOlHInp$?(KAR%g%2}X#!~3=xBx; z8udEg`YTUto>JP;!F+ShJH&UXUQhzvsKPazQAf1phCQdDj*s_#rMX9&WMP1oy~Rtt zw0hb=E!wFT!8R#{y{|-zPOXOOvA5CN`@;GrxAAYcMxW|n?_O%^Ajj=U6IU1Zk0yG- z$Nix(W)GMh+S#q!P%TvAZge}Up?sUx;Mi8&D?E_PuXe_=6Bbd)Px)ZF?*VDs{(r#Efq_doa#Dw}jCh z>AAYuHUk|luU2fW>XB+GC#ota9bcn=e`F4O)t0ZG5wyn-)Cb7uBtFVzCfax~p7tWtMd-1d$d)4}{5jPHO+BEDo zMkCzDXcW8lAjaf%+mb;8Mc~>pkFNNktGdxUqiL}h9%@|`b>>B|E$vfX@1MOWqhHs( z;MB6ASNDF~+UwTpUZVAzA4E;kbgCcg%rh|)uj+w6`?dE*HHVFNFze~O-e(%u`=YJy z9r+A&;ISU>MGZ_n8RA=kDuDGst&-rl@T`m7zv+tI17kHQwB4oWrsjr&dd=?pGY%1A z$0taC(~B1CU-oW2(-_uL&pr969U$FG_6?x!)}Y;JDG0RWYfkpHEg?2z?YcaSuBz~` z=Sx-l#NiRifAmM+I5yS1^Tr$hBso?OlJVI7D&zma!%+i0&pN$$Yh~&3^_97PyLvY2 z_@(hw6`rBeB(|mEd(ha(+Ip5knQFIT2}|EiN47|{)y;d;Rt7GImv3}#YD;U{AL*={ z8EJgl9lTygg^D%>?IFO)3PIU2+p&j%cQp}fYeRR(^+ao-59#hqbvpaLuTn|nvu$!{ zyG_N0o($0bry3INY--xFkGJB%Ty#xamUi2ur7hk1^FA zu8&x{sjovTZG~q)i!>#BTGVxA1ACk(dgu9MrZ*nUW{dXO126gVe@44We%DS>>CfaA zJG$MYNmD1o%Y_eE?;Y({e2|c&C2o+M`0K1ubT<}us%d{aWx!l{BZno zHr&nA?&c_Z_B7HH`llQE>r8#yeE-p#{mWI~_eR+}b|XYeHwy0he#wynAi!sy!5M1*bK~S4Mg)u~*ks&1(28{^RJ#@u|;`zW2tlU;e#g zUl#gyAVsnTzprBanbDt*BW~i~Qq)1{DdhMiJzZCCB<9(Ujkk$c)D?|hw{cOy-)r>S zjrj%t?mGWp+P#Mw&)@E-fk6oVboqyN9eB9;>$#4gxno&1s99Sr{v;HaT^=RT2e>D=Cy3EDn$1jDilNbHFF?^zX;_7G1 zR1^CbmQi+8SMH~zI-QKuQ4RFvX=z7MIDw)BW%)}x~;5hINKECZ){F4st@!?n-##S0QS4W?{4Vds+f@_YCY#$&s7Qklp0n~ z41Qxwn|_)fX7^_ak1PAoc%+3xYxaoL;QHQ9oH` zefC6ERJb;+9BssD;Hh8qlFg3Ko*X`*l;>2lZzewF*j>EoMK4c+a(Ead99bdh<&SRj zL^C_~Z?F7GKp(5+Q2Q-y?I_h6o+WkGdJ;PrqsQ&v)IEOX{$U*#i~s@%AbS}{kN*8Dcj;U(0tg_000IagfB*srAbd{}=|NRaJ;-d&4fB*srAb + Options -MultiViews + + RewriteEngine On @@ -18,9 +30,9 @@ DirectoryIndex app.php RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$ RewriteRule ^(.*) - [E=BASE:%1] - # Sets the HTTP_AUTHORIZATION header removed by apache + # Sets the HTTP_AUTHORIZATION header removed by Apache RewriteCond %{HTTP:Authorization} . - RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] + RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] # Redirect to URI without front controller to prevent duplicate content # (with and without `/app.php`). Only do this redirect on the initial @@ -34,15 +46,15 @@ DirectoryIndex app.php # - use Apache >= 2.3.9 and replace all L flags by END flags and remove the # following RewriteCond (best solution) RewriteCond %{ENV:REDIRECT_STATUS} ^$ - RewriteRule ^app\.php(/(.*)|$) %{ENV:BASE}/$2 [R=301,L] + RewriteRule ^app\.php(?:/(.*)|$) %{ENV:BASE}/$1 [R=301,L] # If the requested filename exists, simply serve it. # We only want to let Apache serve files and not directories. RewriteCond %{REQUEST_FILENAME} -f - RewriteRule .? - [L] + RewriteRule ^ - [L] # Rewrite all other queries to the front controller. - RewriteRule .? %{ENV:BASE}/app.php [L] + RewriteRule ^ %{ENV:BASE}/app.php [L] diff --git a/web/app.php b/web/app.php index cc2fefb55..5c5ee03be 100644 --- a/web/app.php +++ b/web/app.php @@ -6,7 +6,7 @@ use Symfony\Component\HttpFoundation\Request; * @var Composer\Autoload\ClassLoader */ $loader = require __DIR__.'/../app/autoload.php'; -include_once __DIR__.'/../app/bootstrap.php.cache'; +include_once __DIR__.'/../var/bootstrap.php.cache'; // Enable APC for autoloading to improve performance. // You should change the ApcClassLoader first argument to a unique prefix diff --git a/web/app_dev.php b/web/app_dev.php index 635bf7ac7..8456754d5 100644 --- a/web/app_dev.php +++ b/web/app_dev.php @@ -12,7 +12,7 @@ use Symfony\Component\Debug\Debug; // Feel free to remove this, extend it, or make something more sophisticated. if (isset($_SERVER['HTTP_CLIENT_IP']) || isset($_SERVER['HTTP_X_FORWARDED_FOR']) - || !(in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', 'fe80::1', '::1')) || php_sapi_name() === 'cli-server') + || !(in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', 'fe80::1', '::1']) || php_sapi_name() === 'cli-server') ) { header('HTTP/1.0 403 Forbidden'); exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.'); diff --git a/web/robots.txt b/web/robots.txt index 77470cb39..214e41196 100644 --- a/web/robots.txt +++ b/web/robots.txt @@ -1,2 +1,4 @@ +# www.robotstxt.org/ +# www.google.com/support/webmasters/bin/answer.py?hl=en&answer=156449 + User-agent: * -Disallow: / \ No newline at end of file From 31e33fc42e76bad4aca448f13f3f6fc7fd1f0641 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Thu, 14 Jan 2016 18:23:03 +0100 Subject: [PATCH 15/20] Update to Symfony 3.0.x --- composer.json | 11 ++- composer.lock | 269 +++++--------------------------------------------- 2 files changed, 31 insertions(+), 249 deletions(-) diff --git a/composer.json b/composer.json index 46630f770..78b32307a 100644 --- a/composer.json +++ b/composer.json @@ -28,8 +28,8 @@ "issues": "https://github.com/wallabag/wallabag/issues" }, "require": { - "php": ">=5.5.0", - "symfony/symfony": "~2.8", + "php": ">=5.5.9", + "symfony/symfony": "3.0.*", "doctrine/orm": "^2.5", "doctrine/doctrine-bundle": "^1.6", "doctrine/doctrine-cache-bundle": "^1.2", @@ -66,9 +66,9 @@ }, "require-dev": { "doctrine/doctrine-fixtures-bundle": "~2.2", - "sensio/generator-bundle": "~3.0", + "sensio/generator-bundle": "^3.0", "phpunit/phpunit": "~4.4", - "symfony/phpunit-bridge": "~2.7" + "symfony/phpunit-bridge": "^2.7" }, "scripts": { "build-parameters": [ @@ -91,7 +91,10 @@ }, "extra": { "symfony-app-dir": "app", + "symfony-bin-dir": "bin", + "symfony-var-dir": "var", "symfony-web-dir": "web", + "symfony-tests-dir": "tests", "symfony-assets-install": "relative", "incenteev-parameters": { "file": "app/config/parameters.yml", diff --git a/composer.lock b/composer.lock index 3740d4ef0..13eac03fd 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,8 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "786f108cf7727020aa2f003dccd9a58e", - "content-hash": "d8c2f517c9cd9d9ec767a0b396a11de7", + "hash": "084bbfd3166c16fd6bb6feb2c954a9da", + "content-hash": "9352d3c7f307a23d5fec42c350ea0653", "packages": [ { "name": "behat/transliterator", @@ -2670,48 +2670,6 @@ ], "time": "2015-11-10 17:04:01" }, - { - "name": "ircmaxell/password-compat", - "version": "v1.0.4", - "source": { - "type": "git", - "url": "https://github.com/ircmaxell/password_compat.git", - "reference": "5c5cde8822a69545767f7c7f3058cb15ff84614c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/ircmaxell/password_compat/zipball/5c5cde8822a69545767f7c7f3058cb15ff84614c", - "reference": "5c5cde8822a69545767f7c7f3058cb15ff84614c", - "shasum": "" - }, - "require-dev": { - "phpunit/phpunit": "4.*" - }, - "type": "library", - "autoload": { - "files": [ - "lib/password.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Anthony Ferrara", - "email": "ircmaxell@php.net", - "homepage": "http://blog.ircmaxell.com" - } - ], - "description": "A compatibility library for the proposed simplified password hashing algorithm: https://wiki.php.net/rfc/password_hash", - "homepage": "https://github.com/ircmaxell/password_compat", - "keywords": [ - "hashing", - "password" - ], - "time": "2014-11-20 16:49:30" - }, { "name": "j0k3r/graby", "version": "1.0.8", @@ -4572,22 +4530,22 @@ }, { "name": "stof/doctrine-extensions-bundle", - "version": "v1.2.1", + "version": "dev-master", "source": { "type": "git", "url": "https://github.com/stof/StofDoctrineExtensionsBundle.git", - "reference": "7b3144572617b0555f9a443317dbc2f9cf5b524e" + "reference": "6672ca37fe19a8e2a8ae52a93a7163e1b00ef7d5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/stof/StofDoctrineExtensionsBundle/zipball/7b3144572617b0555f9a443317dbc2f9cf5b524e", - "reference": "7b3144572617b0555f9a443317dbc2f9cf5b524e", + "url": "https://api.github.com/repos/stof/StofDoctrineExtensionsBundle/zipball/6672ca37fe19a8e2a8ae52a93a7163e1b00ef7d5", + "reference": "6672ca37fe19a8e2a8ae52a93a7163e1b00ef7d5", "shasum": "" }, "require": { "gedmo/doctrine-extensions": "^2.3.1", "php": ">=5.3.2", - "symfony/framework-bundle": "~2.1" + "symfony/framework-bundle": "~2.1|~3.0" }, "suggest": { "doctrine/doctrine-bundle": "to use the ORM extensions", @@ -4629,7 +4587,7 @@ "translatable", "tree" ], - "time": "2015-08-12 16:23:48" + "time": "2015-11-26 18:29:38" }, { "name": "swiftmailer/swiftmailer", @@ -4927,120 +4885,6 @@ ], "time": "2015-11-20 09:19:13" }, - { - "name": "symfony/polyfill-php54", - "version": "v1.0.1", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-php54.git", - "reference": "2c9f6d98eb30dc04fe0b06f9cc92a55acea5bdcc" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php54/zipball/2c9f6d98eb30dc04fe0b06f9cc92a55acea5bdcc", - "reference": "2c9f6d98eb30dc04fe0b06f9cc92a55acea5bdcc", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Polyfill\\Php54\\": "" - }, - "files": [ - "bootstrap.php" - ], - "classmap": [ - "Resources/stubs" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill backporting some PHP 5.4+ features to lower PHP versions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" - ], - "time": "2015-11-04 20:28:58" - }, - { - "name": "symfony/polyfill-php55", - "version": "v1.0.1", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-php55.git", - "reference": "3adc962a6250c02adb508e85ecfa6fcfee9eec47" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php55/zipball/3adc962a6250c02adb508e85ecfa6fcfee9eec47", - "reference": "3adc962a6250c02adb508e85ecfa6fcfee9eec47", - "shasum": "" - }, - "require": { - "ircmaxell/password-compat": "~1.0", - "php": ">=5.3.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Polyfill\\Php55\\": "" - }, - "files": [ - "bootstrap.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill backporting some PHP 5.5+ features to lower PHP versions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" - ], - "time": "2015-11-04 20:28:58" - }, { "name": "symfony/polyfill-php56", "version": "v1.0.1", @@ -5208,79 +5052,18 @@ ], "time": "2015-11-04 20:28:58" }, - { - "name": "symfony/security-acl", - "version": "v2.8.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/security-acl.git", - "reference": "4a3f7327ad215242c78f6564ad4ea6d2db1b8347" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/security-acl/zipball/4a3f7327ad215242c78f6564ad4ea6d2db1b8347", - "reference": "4a3f7327ad215242c78f6564ad4ea6d2db1b8347", - "shasum": "" - }, - "require": { - "php": ">=5.3.9", - "symfony/security-core": "~2.4|~3.0.0" - }, - "require-dev": { - "doctrine/common": "~2.2", - "doctrine/dbal": "~2.2", - "psr/log": "~1.0", - "symfony/phpunit-bridge": "~2.7|~3.0.0" - }, - "suggest": { - "doctrine/dbal": "For using the built-in ACL implementation", - "symfony/class-loader": "For using the ACL generateSql script", - "symfony/finder": "For using the ACL generateSql script" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.8-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Component\\Security\\Acl\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony Security Component - ACL (Access Control List)", - "homepage": "https://symfony.com", - "time": "2015-12-28 09:39:09" - }, { "name": "symfony/swiftmailer-bundle", - "version": "v2.3.9", + "version": "v2.3.10", "source": { "type": "git", "url": "https://github.com/symfony/swiftmailer-bundle.git", - "reference": "3d21ada19f23631f558ad6df653b168e35362e78" + "reference": "de5a2ddcaf91d2e44c19161e0fe8ed88022ceb51" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/swiftmailer-bundle/zipball/3d21ada19f23631f558ad6df653b168e35362e78", - "reference": "3d21ada19f23631f558ad6df653b168e35362e78", + "url": "https://api.github.com/repos/symfony/swiftmailer-bundle/zipball/de5a2ddcaf91d2e44c19161e0fe8ed88022ceb51", + "reference": "de5a2ddcaf91d2e44c19161e0fe8ed88022ceb51", "shasum": "" }, "require": { @@ -5324,34 +5107,31 @@ ], "description": "Symfony SwiftmailerBundle", "homepage": "http://symfony.com", - "time": "2015-11-28 10:59:29" + "time": "2016-01-14 10:25:38" }, { "name": "symfony/symfony", - "version": "v2.8.2", + "version": "v3.0.1", "source": { "type": "git", "url": "https://github.com/symfony/symfony.git", - "reference": "f3e6a82bcbea4db3b56df08e491e20a1faae82b5" + "reference": "979d7323716fec847508eac3e62d59b117612a6e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/symfony/zipball/f3e6a82bcbea4db3b56df08e491e20a1faae82b5", - "reference": "f3e6a82bcbea4db3b56df08e491e20a1faae82b5", + "url": "https://api.github.com/repos/symfony/symfony/zipball/979d7323716fec847508eac3e62d59b117612a6e", + "reference": "979d7323716fec847508eac3e62d59b117612a6e", "shasum": "" }, "require": { "doctrine/common": "~2.4", - "php": ">=5.3.9", + "php": ">=5.5.9", "psr/log": "~1.0", "symfony/polyfill-intl-icu": "~1.0", "symfony/polyfill-mbstring": "~1.0", - "symfony/polyfill-php54": "~1.0", - "symfony/polyfill-php55": "~1.0", "symfony/polyfill-php56": "~1.0", "symfony/polyfill-php70": "~1.0", "symfony/polyfill-util": "~1.0", - "symfony/security-acl": "~2.7", "twig/twig": "~1.23|~2.0" }, "conflict": { @@ -5379,7 +5159,6 @@ "symfony/http-kernel": "self.version", "symfony/intl": "self.version", "symfony/ldap": "self.version", - "symfony/locale": "self.version", "symfony/monolog-bridge": "self.version", "symfony/options-resolver": "self.version", "symfony/process": "self.version", @@ -5395,7 +5174,6 @@ "symfony/security-http": "self.version", "symfony/serializer": "self.version", "symfony/stopwatch": "self.version", - "symfony/swiftmailer-bridge": "self.version", "symfony/templating": "self.version", "symfony/translation": "self.version", "symfony/twig-bridge": "self.version", @@ -5408,17 +5186,18 @@ "require-dev": { "doctrine/data-fixtures": "1.0.*", "doctrine/dbal": "~2.4", - "doctrine/doctrine-bundle": "~1.2", + "doctrine/doctrine-bundle": "~1.4", "doctrine/orm": "~2.4,>=2.4.5", "egulias/email-validator": "~1.2", "monolog/monolog": "~1.11", "ocramius/proxy-manager": "~0.4|~1.0", - "phpdocumentor/reflection": "^1.0.7" + "phpdocumentor/reflection": "^1.0.7", + "symfony/security-acl": "~2.8|~3.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.8-dev" + "dev-master": "3.0-dev" } }, "autoload": { @@ -5457,7 +5236,7 @@ "keywords": [ "framework" ], - "time": "2016-01-14 12:01:11" + "time": "2015-12-26 16:49:48" }, { "name": "tecnickcom/tcpdf", @@ -6969,7 +6748,7 @@ "prefer-stable": true, "prefer-lowest": false, "platform": { - "php": ">=5.5.0" + "php": ">=5.5.9" }, "platform-dev": [] } From ccf50a9fd84e6e363ce8fb836148151711bbdc8e Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Thu, 14 Jan 2016 18:27:36 +0100 Subject: [PATCH 16/20] Update path in build file --- build.xml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/build.xml b/build.xml index 110011e81..ab8cac29a 100644 --- a/build.xml +++ b/build.xml @@ -6,7 +6,7 @@ - + @@ -19,28 +19,28 @@ - + - + - + - + - + @@ -55,7 +55,7 @@ - + @@ -69,7 +69,7 @@ - + @@ -83,7 +83,7 @@ - + From d8dbe76bf5b97d199ce4a20de53a52728a88befc Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Thu, 14 Jan 2016 18:35:59 +0100 Subject: [PATCH 17/20] Add assets config To avoid : > Twig_Error_Syntax: Unknown "asset" function in --- app/config/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/app/config/config.yml b/app/config/config.yml index 133fc12fe..19e7155dd 100644 --- a/app/config/config.yml +++ b/app/config/config.yml @@ -25,6 +25,7 @@ framework: save_path: "%kernel.root_dir%/../var/sessions/%kernel.environment%" fragments: ~ http_method_override: true + assets: ~ wallabag_core: languages: From 1fc8ed879459f179f840de9d0866dc4516c6eb77 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Fri, 15 Jan 2016 07:55:18 +0100 Subject: [PATCH 18/20] Last deps update --- bin/symfony_requirements | 0 composer.lock | 94 ++++++++++++++++++++-------------------- 2 files changed, 47 insertions(+), 47 deletions(-) mode change 100644 => 100755 bin/symfony_requirements diff --git a/bin/symfony_requirements b/bin/symfony_requirements old mode 100644 new mode 100755 diff --git a/composer.lock b/composer.lock index 13eac03fd..1cd9952e5 100644 --- a/composer.lock +++ b/composer.lock @@ -1738,26 +1738,26 @@ }, { "name": "hoa/compiler", - "version": "3.16.01.11", + "version": "3.16.01.14", "source": { "type": "git", "url": "https://github.com/hoaproject/Compiler.git", - "reference": "1496646bfa85f88ab50b651857fbf4bbd15dbca1" + "reference": "a1505e507e8368dbf7a5b490c4a5a90e06d7bd69" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/hoaproject/Compiler/zipball/1496646bfa85f88ab50b651857fbf4bbd15dbca1", - "reference": "1496646bfa85f88ab50b651857fbf4bbd15dbca1", + "url": "https://api.github.com/repos/hoaproject/Compiler/zipball/a1505e507e8368dbf7a5b490c4a5a90e06d7bd69", + "reference": "a1505e507e8368dbf7a5b490c4a5a90e06d7bd69", "shasum": "" }, "require": { "hoa/consistency": "~1.0", "hoa/exception": "~1.0", - "hoa/file": "~0.0", + "hoa/file": "~1.0", "hoa/iterator": "~2.0", - "hoa/math": "~0.0", + "hoa/math": "~1.0", "hoa/protocol": "~1.0", - "hoa/regex": "~0.0", + "hoa/regex": "~1.0", "hoa/visitor": "~2.0" }, "require-dev": { @@ -1816,7 +1816,7 @@ "trace", "uniform" ], - "time": "2016-01-11 08:55:03" + "time": "2016-01-14 20:44:59" }, { "name": "hoa/consistency", @@ -1993,16 +1993,16 @@ }, { "name": "hoa/file", - "version": "0.16.01.11", + "version": "1.16.01.15", "source": { "type": "git", "url": "https://github.com/hoaproject/File.git", - "reference": "c96689d30c2268ee71d34b58a8d48c9ccb6f8b0e" + "reference": "bc04ddb476bfeee03c2be585fc37a98d2887277b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/hoaproject/File/zipball/c96689d30c2268ee71d34b58a8d48c9ccb6f8b0e", - "reference": "c96689d30c2268ee71d34b58a8d48c9ccb6f8b0e", + "url": "https://api.github.com/repos/hoaproject/File/zipball/bc04ddb476bfeee03c2be585fc37a98d2887277b", + "reference": "bc04ddb476bfeee03c2be585fc37a98d2887277b", "shasum": "" }, "require": { @@ -2010,7 +2010,7 @@ "hoa/event": "~1.0", "hoa/exception": "~1.0", "hoa/iterator": "~2.0", - "hoa/stream": "~0.0" + "hoa/stream": "~1.0" }, "require-dev": { "hoa/test": "~2.0" @@ -2018,7 +2018,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "0.x-dev" + "dev-master": "1.x-dev" } }, "autoload": { @@ -2051,7 +2051,7 @@ "link", "temporary" ], - "time": "2016-01-11 09:07:45" + "time": "2016-01-14 20:55:07" }, { "name": "hoa/iterator", @@ -2109,16 +2109,16 @@ }, { "name": "hoa/math", - "version": "0.16.01.11", + "version": "1.16.01.15", "source": { "type": "git", "url": "https://github.com/hoaproject/Math.git", - "reference": "9ddfa1a4bac94af5c2151c4b96be80b3a0209749" + "reference": "218e6b4a42b66094e94cf9cbabf0a4276fece6bf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/hoaproject/Math/zipball/9ddfa1a4bac94af5c2151c4b96be80b3a0209749", - "reference": "9ddfa1a4bac94af5c2151c4b96be80b3a0209749", + "url": "https://api.github.com/repos/hoaproject/Math/zipball/218e6b4a42b66094e94cf9cbabf0a4276fece6bf", + "reference": "218e6b4a42b66094e94cf9cbabf0a4276fece6bf", "shasum": "" }, "require": { @@ -2127,7 +2127,7 @@ "hoa/exception": "~1.0", "hoa/iterator": "~2.0", "hoa/protocol": "~1.0", - "hoa/zformat": "~0.0" + "hoa/zformat": "~1.0" }, "require-dev": { "hoa/test": "~2.0" @@ -2135,7 +2135,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "0.x-dev" + "dev-master": "1.x-dev" } }, "autoload": { @@ -2170,7 +2170,7 @@ "sampler", "set" ], - "time": "2016-01-11 09:23:49" + "time": "2016-01-14 21:02:22" }, { "name": "hoa/protocol", @@ -2234,22 +2234,22 @@ }, { "name": "hoa/regex", - "version": "0.16.01.11", + "version": "1.16.01.15", "source": { "type": "git", "url": "https://github.com/hoaproject/Regex.git", - "reference": "a0e01a81fae0e7a325a5d958a269d611a5252690" + "reference": "e7fb36fdea23ea9fc814a1a68bd0144df1891463" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/hoaproject/Regex/zipball/a0e01a81fae0e7a325a5d958a269d611a5252690", - "reference": "a0e01a81fae0e7a325a5d958a269d611a5252690", + "url": "https://api.github.com/repos/hoaproject/Regex/zipball/e7fb36fdea23ea9fc814a1a68bd0144df1891463", + "reference": "e7fb36fdea23ea9fc814a1a68bd0144df1891463", "shasum": "" }, "require": { "hoa/consistency": "~1.0", "hoa/exception": "~1.0", - "hoa/math": "~0.0", + "hoa/math": "~1.0", "hoa/protocol": "~1.0", "hoa/ustring": "~4.0", "hoa/visitor": "~2.0" @@ -2257,7 +2257,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "0.x-dev" + "dev-master": "1.x-dev" } }, "autoload": { @@ -2286,27 +2286,27 @@ "library", "regex" ], - "time": "2016-01-11 09:36:00" + "time": "2016-01-14 21:10:33" }, { "name": "hoa/ruler", - "version": "2.16.01.11", + "version": "2.16.01.15", "source": { "type": "git", "url": "https://github.com/hoaproject/Ruler.git", - "reference": "34175a4ee1ffc28c7ee37032dded25ddd060b288" + "reference": "0aeb1a48d78427a55fbf656c65c6406c096a4325" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/hoaproject/Ruler/zipball/34175a4ee1ffc28c7ee37032dded25ddd060b288", - "reference": "34175a4ee1ffc28c7ee37032dded25ddd060b288", + "url": "https://api.github.com/repos/hoaproject/Ruler/zipball/0aeb1a48d78427a55fbf656c65c6406c096a4325", + "reference": "0aeb1a48d78427a55fbf656c65c6406c096a4325", "shasum": "" }, "require": { "hoa/compiler": "~3.0", "hoa/consistency": "~1.0", "hoa/exception": "~1.0", - "hoa/file": "~0.0", + "hoa/file": "~1.0", "hoa/visitor": "~2.0" }, "require-dev": { @@ -2343,20 +2343,20 @@ "library", "ruler" ], - "time": "2016-01-11 09:39:31" + "time": "2016-01-14 21:42:47" }, { "name": "hoa/stream", - "version": "0.16.01.11", + "version": "1.16.01.14", "source": { "type": "git", "url": "https://github.com/hoaproject/Stream.git", - "reference": "06804e673281c6f1fec580345f489f4e9bf43981" + "reference": "c00b35078ef8c0881b7d2ed533de19fe0aaf9896" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/hoaproject/Stream/zipball/06804e673281c6f1fec580345f489f4e9bf43981", - "reference": "06804e673281c6f1fec580345f489f4e9bf43981", + "url": "https://api.github.com/repos/hoaproject/Stream/zipball/c00b35078ef8c0881b7d2ed533de19fe0aaf9896", + "reference": "c00b35078ef8c0881b7d2ed533de19fe0aaf9896", "shasum": "" }, "require": { @@ -2368,7 +2368,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "0.x-dev" + "dev-master": "1.x-dev" } }, "autoload": { @@ -2404,7 +2404,7 @@ "stream", "wrapper" ], - "time": "2016-01-11 09:44:48" + "time": "2016-01-14 20:11:37" }, { "name": "hoa/ustring", @@ -2523,16 +2523,16 @@ }, { "name": "hoa/zformat", - "version": "0.16.01.11", + "version": "1.16.01.14", "source": { "type": "git", "url": "https://github.com/hoaproject/Zformat.git", - "reference": "fd4d4243c3f8e99db46a531bec3ce498667dd83a" + "reference": "685bba314c5cacb97afdd5e638b64c42399a580c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/hoaproject/Zformat/zipball/fd4d4243c3f8e99db46a531bec3ce498667dd83a", - "reference": "fd4d4243c3f8e99db46a531bec3ce498667dd83a", + "url": "https://api.github.com/repos/hoaproject/Zformat/zipball/685bba314c5cacb97afdd5e638b64c42399a580c", + "reference": "685bba314c5cacb97afdd5e638b64c42399a580c", "shasum": "" }, "require": { @@ -2542,7 +2542,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "0.x-dev" + "dev-master": "1.x-dev" } }, "autoload": { @@ -2571,7 +2571,7 @@ "parameter", "zformat" ], - "time": "2016-01-11 10:03:00" + "time": "2016-01-14 20:19:54" }, { "name": "htmlawed/htmlawed", From c7f622d3699b7f65ee75bcd5d409ad2027e9b6a4 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Fri, 15 Jan 2016 09:34:09 +0100 Subject: [PATCH 19/20] Update readme & fix console permission --- README.md | 7 +++---- bin/console | 0 phpunit.xml.dist | 14 +++++++------- src/Wallabag/CoreBundle/Command/InstallCommand.php | 3 +-- 4 files changed, 11 insertions(+), 13 deletions(-) mode change 100644 => 100755 bin/console diff --git a/README.md b/README.md index 6d545ff51..927f39a88 100644 --- a/README.md +++ b/README.md @@ -16,12 +16,11 @@ If you don't have it yet, please [install composer](https://getcomposer.org/down ``` composer create-project wallabag/wallabag wallabag 2.0.0-alpha.1 -cd wallabag -php app/console wallabag:install -php app/console server:run +php bin/console wallabag:install +php bin/console server:run ``` ## License -Copyright © 2013-2015 Nicolas Lœuillet +Copyright © 2013-2016 Nicolas Lœuillet This work is free. You can redistribute it and/or modify it under the terms of the MIT License. See the COPYING file for more details. diff --git a/bin/console b/bin/console old mode 100644 new mode 100755 diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 0e8cc8ebb..e68df9de6 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -14,22 +14,22 @@ - ./src/Wallabag/*Bundle/Tests + src/Wallabag/*Bundle/Tests - + - ./src + src - ./vendor - ./src/Wallabag/*Bundle/Resources - ./src/Wallabag/*Bundle/Tests - ./src/Wallabag/*Bundle/DataFixtures + vendor + src/Wallabag/*Bundle/Resources + src/Wallabag/*Bundle/Tests + src/Wallabag/*Bundle/DataFixtures diff --git a/src/Wallabag/CoreBundle/Command/InstallCommand.php b/src/Wallabag/CoreBundle/Command/InstallCommand.php index 941cb8cdc..da099a19b 100644 --- a/src/Wallabag/CoreBundle/Command/InstallCommand.php +++ b/src/Wallabag/CoreBundle/Command/InstallCommand.php @@ -12,7 +12,6 @@ use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Question\ConfirmationQuestion; use Symfony\Component\Console\Question\Question; use Wallabag\CoreBundle\Entity\Config; -use Wallabag\UserBundle\Entity\User; class InstallCommand extends ContainerAwareCommand { @@ -56,7 +55,7 @@ class InstallCommand extends ContainerAwareCommand ; $output->writeln('Wallabag has been successfully installed.'); - $output->writeln('Just execute `php app/console server:run` for using wallabag: http://localhost:8000'); + $output->writeln('Just execute `php bin/console server:run` for using wallabag: http://localhost:8000'); } protected function checkRequirements() From 131eaa3e94ace8d75d6218e5c7c3aa58d5bb5009 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Fri, 15 Jan 2016 11:05:51 +0100 Subject: [PATCH 20/20] Update graby stuff --- composer.lock | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/composer.lock b/composer.lock index 1cd9952e5..842b749dd 100644 --- a/composer.lock +++ b/composer.lock @@ -2672,23 +2672,23 @@ }, { "name": "j0k3r/graby", - "version": "1.0.8", + "version": "1.1.0", "source": { "type": "git", "url": "https://github.com/j0k3r/graby.git", - "reference": "bf152ccc6629bdd63b1e5e8b297c2912516b5f1e" + "reference": "fa5356fbbabe8288ed57a978ab05725c7063727e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/j0k3r/graby/zipball/bf152ccc6629bdd63b1e5e8b297c2912516b5f1e", - "reference": "bf152ccc6629bdd63b1e5e8b297c2912516b5f1e", + "url": "https://api.github.com/repos/j0k3r/graby/zipball/fa5356fbbabe8288ed57a978ab05725c7063727e", + "reference": "fa5356fbbabe8288ed57a978ab05725c7063727e", "shasum": "" }, "require": { "ext-curl": "*", "guzzlehttp/guzzle": "^5.2.0", "htmlawed/htmlawed": "^1.1.19", - "j0k3r/graby-site-config": "^1.0.0", + "j0k3r/graby-site-config": "^1.0", "j0k3r/php-readability": "^1.0", "j0k3r/safecurl": "~2.0", "monolog/monolog": "^1.13.1", @@ -2724,20 +2724,20 @@ } ], "description": "Graby helps you extract article content from web pages", - "time": "2015-12-24 08:28:38" + "time": "2016-01-15 09:52:40" }, { "name": "j0k3r/graby-site-config", - "version": "1.0.11", + "version": "1.0.12", "source": { "type": "git", "url": "https://github.com/j0k3r/graby-site-config.git", - "reference": "ac198f308beabccc97bbd35ed0daeaac63fbf1e3" + "reference": "ddd602cab137ee40ac3f5a8dd9b749bea7d2f541" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/j0k3r/graby-site-config/zipball/ac198f308beabccc97bbd35ed0daeaac63fbf1e3", - "reference": "ac198f308beabccc97bbd35ed0daeaac63fbf1e3", + "url": "https://api.github.com/repos/j0k3r/graby-site-config/zipball/ddd602cab137ee40ac3f5a8dd9b749bea7d2f541", + "reference": "ddd602cab137ee40ac3f5a8dd9b749bea7d2f541", "shasum": "" }, "require": { @@ -2760,7 +2760,7 @@ } ], "description": "Graby site config files", - "time": "2015-12-23 22:52:15" + "time": "2016-01-15 09:59:00" }, { "name": "j0k3r/php-readability",