├── .gitignore ├── LICENSE ├── README.md ├── composer.json ├── composer.lock ├── doc ├── LICENSE └── index.rst ├── phpunit.xml.dist ├── src └── JMS │ └── ObjectRouting │ ├── Annotation │ └── ObjectRoute.php │ ├── Exception │ ├── Exception.php │ ├── RuntimeException.php │ └── XmlErrorException.php │ ├── Metadata │ ├── ClassMetadata.php │ └── Driver │ │ ├── AnnotationDriver.php │ │ ├── PhpDriver.php │ │ ├── XmlDriver.php │ │ └── YamlDriver.php │ ├── ObjectRouter.php │ ├── RouterInterface.php │ ├── Symfony │ ├── Symfony21Adapter.php │ └── Symfony22Adapter.php │ └── Twig │ └── RoutingExtension.php └── tests ├── JMS └── Tests │ └── ObjectRouting │ ├── Metadata │ └── Driver │ │ ├── AnnotationDriverTest.php │ │ ├── Fixture │ │ └── BlogPost.php │ │ ├── PhpDriverTest.php │ │ ├── XmlDriverTest.php │ │ └── YamlDriverTest.php │ ├── ObjectRouterTest.php │ ├── Resources │ └── config │ │ ├── JMS.Tests.ObjectRouting.Metadata.Driver.Fixture.BlogPost.php │ │ ├── JMS.Tests.ObjectRouting.Metadata.Driver.Fixture.BlogPost.xml │ │ └── JMS.Tests.ObjectRouting.Metadata.Driver.Fixture.BlogPost.yml │ └── Symfony │ ├── Symfony21AdapterTest.php │ └── Symfony22AdapterTest.php └── bootstrap.php /.gitignore: -------------------------------------------------------------------------------- 1 | vendor/ 2 | phpunit.xml 3 | .phpunit.result.cache 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Object Routing Library 2 | ====================== 3 | 4 | Learn more about it in its [documentation](http://jmsyst.com/libs/object-routing). 5 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jms/object-routing", 3 | "description": "Library for generating routes based on objects.", 4 | "license": "Apache-2.0", 5 | 6 | "require": { 7 | "jms/metadata": "^2.6.1", 8 | "symfony/property-access": "^2.2 || ^3.0 || ^4.0 || ^5.0" 9 | }, 10 | 11 | "require-dev": { 12 | "symfony/routing": "^2.1 || ^3.0 || ^4.0", 13 | "doctrine/common": "^2.2", 14 | "symfony/yaml": "^2.0 || ^3.0 || ^4.0 || ^5.0", 15 | "phpunit/phpunit": "^9.5", 16 | "twig/twig": "^3.3" 17 | }, 18 | 19 | "conflict": { 20 | "twig/twig": "^1.0" 21 | }, 22 | 23 | "autoload": { 24 | "psr-0": { 25 | "JMS": "src/" 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- 1 | { 2 | "_readme": [ 3 | "This file locks the dependencies of your project to a known state", 4 | "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", 5 | "This file is @generated automatically" 6 | ], 7 | "content-hash": "007d8281c577f8d800e2c17185764603", 8 | "packages": [ 9 | { 10 | "name": "jms/metadata", 11 | "version": "2.6.1", 12 | "source": { 13 | "type": "git", 14 | "url": "https://github.com/schmittjoh/metadata.git", 15 | "reference": "c3a3214354b5a765a19875f7b7c5ebcd94e462e5" 16 | }, 17 | "dist": { 18 | "type": "zip", 19 | "url": "https://api.github.com/repos/schmittjoh/metadata/zipball/c3a3214354b5a765a19875f7b7c5ebcd94e462e5", 20 | "reference": "c3a3214354b5a765a19875f7b7c5ebcd94e462e5", 21 | "shasum": "" 22 | }, 23 | "require": { 24 | "php": "^7.2|^8.0" 25 | }, 26 | "require-dev": { 27 | "doctrine/cache": "^1.0", 28 | "doctrine/coding-standard": "^8.0", 29 | "mikey179/vfsstream": "^1.6.7", 30 | "phpunit/phpunit": "^8.5|^9.0", 31 | "psr/container": "^1.0", 32 | "symfony/cache": "^3.1|^4.0|^5.0", 33 | "symfony/dependency-injection": "^3.1|^4.0|^5.0" 34 | }, 35 | "type": "library", 36 | "extra": { 37 | "branch-alias": { 38 | "dev-master": "2.x-dev" 39 | } 40 | }, 41 | "autoload": { 42 | "psr-4": { 43 | "Metadata\\": "src/" 44 | } 45 | }, 46 | "notification-url": "https://packagist.org/downloads/", 47 | "license": [ 48 | "MIT" 49 | ], 50 | "authors": [ 51 | { 52 | "name": "Johannes M. Schmitt", 53 | "email": "schmittjoh@gmail.com" 54 | }, 55 | { 56 | "name": "Asmir Mustafic", 57 | "email": "goetas@gmail.com" 58 | } 59 | ], 60 | "description": "Class/method/property metadata management in PHP", 61 | "keywords": [ 62 | "annotations", 63 | "metadata", 64 | "xml", 65 | "yaml" 66 | ], 67 | "support": { 68 | "issues": "https://github.com/schmittjoh/metadata/issues", 69 | "source": "https://github.com/schmittjoh/metadata/tree/2.6.1" 70 | }, 71 | "time": "2021-11-22T12:27:42+00:00" 72 | }, 73 | { 74 | "name": "symfony/deprecation-contracts", 75 | "version": "v3.0.0", 76 | "source": { 77 | "type": "git", 78 | "url": "https://github.com/symfony/deprecation-contracts.git", 79 | "reference": "c726b64c1ccfe2896cb7df2e1331c357ad1c8ced" 80 | }, 81 | "dist": { 82 | "type": "zip", 83 | "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/c726b64c1ccfe2896cb7df2e1331c357ad1c8ced", 84 | "reference": "c726b64c1ccfe2896cb7df2e1331c357ad1c8ced", 85 | "shasum": "" 86 | }, 87 | "require": { 88 | "php": ">=8.0.2" 89 | }, 90 | "type": "library", 91 | "extra": { 92 | "branch-alias": { 93 | "dev-main": "3.0-dev" 94 | }, 95 | "thanks": { 96 | "name": "symfony/contracts", 97 | "url": "https://github.com/symfony/contracts" 98 | } 99 | }, 100 | "autoload": { 101 | "files": [ 102 | "function.php" 103 | ] 104 | }, 105 | "notification-url": "https://packagist.org/downloads/", 106 | "license": [ 107 | "MIT" 108 | ], 109 | "authors": [ 110 | { 111 | "name": "Nicolas Grekas", 112 | "email": "p@tchwork.com" 113 | }, 114 | { 115 | "name": "Symfony Community", 116 | "homepage": "https://symfony.com/contributors" 117 | } 118 | ], 119 | "description": "A generic function and convention to trigger deprecation notices", 120 | "homepage": "https://symfony.com", 121 | "support": { 122 | "source": "https://github.com/symfony/deprecation-contracts/tree/v3.0.0" 123 | }, 124 | "funding": [ 125 | { 126 | "url": "https://symfony.com/sponsor", 127 | "type": "custom" 128 | }, 129 | { 130 | "url": "https://github.com/fabpot", 131 | "type": "github" 132 | }, 133 | { 134 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 135 | "type": "tidelift" 136 | } 137 | ], 138 | "time": "2021-11-01T23:48:49+00:00" 139 | }, 140 | { 141 | "name": "symfony/polyfill-ctype", 142 | "version": "v1.25.0", 143 | "source": { 144 | "type": "git", 145 | "url": "https://github.com/symfony/polyfill-ctype.git", 146 | "reference": "30885182c981ab175d4d034db0f6f469898070ab" 147 | }, 148 | "dist": { 149 | "type": "zip", 150 | "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/30885182c981ab175d4d034db0f6f469898070ab", 151 | "reference": "30885182c981ab175d4d034db0f6f469898070ab", 152 | "shasum": "" 153 | }, 154 | "require": { 155 | "php": ">=7.1" 156 | }, 157 | "provide": { 158 | "ext-ctype": "*" 159 | }, 160 | "suggest": { 161 | "ext-ctype": "For best performance" 162 | }, 163 | "type": "library", 164 | "extra": { 165 | "branch-alias": { 166 | "dev-main": "1.23-dev" 167 | }, 168 | "thanks": { 169 | "name": "symfony/polyfill", 170 | "url": "https://github.com/symfony/polyfill" 171 | } 172 | }, 173 | "autoload": { 174 | "files": [ 175 | "bootstrap.php" 176 | ], 177 | "psr-4": { 178 | "Symfony\\Polyfill\\Ctype\\": "" 179 | } 180 | }, 181 | "notification-url": "https://packagist.org/downloads/", 182 | "license": [ 183 | "MIT" 184 | ], 185 | "authors": [ 186 | { 187 | "name": "Gert de Pagter", 188 | "email": "BackEndTea@gmail.com" 189 | }, 190 | { 191 | "name": "Symfony Community", 192 | "homepage": "https://symfony.com/contributors" 193 | } 194 | ], 195 | "description": "Symfony polyfill for ctype functions", 196 | "homepage": "https://symfony.com", 197 | "keywords": [ 198 | "compatibility", 199 | "ctype", 200 | "polyfill", 201 | "portable" 202 | ], 203 | "support": { 204 | "source": "https://github.com/symfony/polyfill-ctype/tree/v1.25.0" 205 | }, 206 | "funding": [ 207 | { 208 | "url": "https://symfony.com/sponsor", 209 | "type": "custom" 210 | }, 211 | { 212 | "url": "https://github.com/fabpot", 213 | "type": "github" 214 | }, 215 | { 216 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 217 | "type": "tidelift" 218 | } 219 | ], 220 | "time": "2021-10-20T20:35:02+00:00" 221 | }, 222 | { 223 | "name": "symfony/polyfill-intl-grapheme", 224 | "version": "v1.25.0", 225 | "source": { 226 | "type": "git", 227 | "url": "https://github.com/symfony/polyfill-intl-grapheme.git", 228 | "reference": "81b86b50cf841a64252b439e738e97f4a34e2783" 229 | }, 230 | "dist": { 231 | "type": "zip", 232 | "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/81b86b50cf841a64252b439e738e97f4a34e2783", 233 | "reference": "81b86b50cf841a64252b439e738e97f4a34e2783", 234 | "shasum": "" 235 | }, 236 | "require": { 237 | "php": ">=7.1" 238 | }, 239 | "suggest": { 240 | "ext-intl": "For best performance" 241 | }, 242 | "type": "library", 243 | "extra": { 244 | "branch-alias": { 245 | "dev-main": "1.23-dev" 246 | }, 247 | "thanks": { 248 | "name": "symfony/polyfill", 249 | "url": "https://github.com/symfony/polyfill" 250 | } 251 | }, 252 | "autoload": { 253 | "files": [ 254 | "bootstrap.php" 255 | ], 256 | "psr-4": { 257 | "Symfony\\Polyfill\\Intl\\Grapheme\\": "" 258 | } 259 | }, 260 | "notification-url": "https://packagist.org/downloads/", 261 | "license": [ 262 | "MIT" 263 | ], 264 | "authors": [ 265 | { 266 | "name": "Nicolas Grekas", 267 | "email": "p@tchwork.com" 268 | }, 269 | { 270 | "name": "Symfony Community", 271 | "homepage": "https://symfony.com/contributors" 272 | } 273 | ], 274 | "description": "Symfony polyfill for intl's grapheme_* functions", 275 | "homepage": "https://symfony.com", 276 | "keywords": [ 277 | "compatibility", 278 | "grapheme", 279 | "intl", 280 | "polyfill", 281 | "portable", 282 | "shim" 283 | ], 284 | "support": { 285 | "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.25.0" 286 | }, 287 | "funding": [ 288 | { 289 | "url": "https://symfony.com/sponsor", 290 | "type": "custom" 291 | }, 292 | { 293 | "url": "https://github.com/fabpot", 294 | "type": "github" 295 | }, 296 | { 297 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 298 | "type": "tidelift" 299 | } 300 | ], 301 | "time": "2021-11-23T21:10:46+00:00" 302 | }, 303 | { 304 | "name": "symfony/polyfill-intl-normalizer", 305 | "version": "v1.25.0", 306 | "source": { 307 | "type": "git", 308 | "url": "https://github.com/symfony/polyfill-intl-normalizer.git", 309 | "reference": "8590a5f561694770bdcd3f9b5c69dde6945028e8" 310 | }, 311 | "dist": { 312 | "type": "zip", 313 | "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/8590a5f561694770bdcd3f9b5c69dde6945028e8", 314 | "reference": "8590a5f561694770bdcd3f9b5c69dde6945028e8", 315 | "shasum": "" 316 | }, 317 | "require": { 318 | "php": ">=7.1" 319 | }, 320 | "suggest": { 321 | "ext-intl": "For best performance" 322 | }, 323 | "type": "library", 324 | "extra": { 325 | "branch-alias": { 326 | "dev-main": "1.23-dev" 327 | }, 328 | "thanks": { 329 | "name": "symfony/polyfill", 330 | "url": "https://github.com/symfony/polyfill" 331 | } 332 | }, 333 | "autoload": { 334 | "files": [ 335 | "bootstrap.php" 336 | ], 337 | "psr-4": { 338 | "Symfony\\Polyfill\\Intl\\Normalizer\\": "" 339 | }, 340 | "classmap": [ 341 | "Resources/stubs" 342 | ] 343 | }, 344 | "notification-url": "https://packagist.org/downloads/", 345 | "license": [ 346 | "MIT" 347 | ], 348 | "authors": [ 349 | { 350 | "name": "Nicolas Grekas", 351 | "email": "p@tchwork.com" 352 | }, 353 | { 354 | "name": "Symfony Community", 355 | "homepage": "https://symfony.com/contributors" 356 | } 357 | ], 358 | "description": "Symfony polyfill for intl's Normalizer class and related functions", 359 | "homepage": "https://symfony.com", 360 | "keywords": [ 361 | "compatibility", 362 | "intl", 363 | "normalizer", 364 | "polyfill", 365 | "portable", 366 | "shim" 367 | ], 368 | "support": { 369 | "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.25.0" 370 | }, 371 | "funding": [ 372 | { 373 | "url": "https://symfony.com/sponsor", 374 | "type": "custom" 375 | }, 376 | { 377 | "url": "https://github.com/fabpot", 378 | "type": "github" 379 | }, 380 | { 381 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 382 | "type": "tidelift" 383 | } 384 | ], 385 | "time": "2021-02-19T12:13:01+00:00" 386 | }, 387 | { 388 | "name": "symfony/polyfill-mbstring", 389 | "version": "v1.25.0", 390 | "source": { 391 | "type": "git", 392 | "url": "https://github.com/symfony/polyfill-mbstring.git", 393 | "reference": "0abb51d2f102e00a4eefcf46ba7fec406d245825" 394 | }, 395 | "dist": { 396 | "type": "zip", 397 | "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/0abb51d2f102e00a4eefcf46ba7fec406d245825", 398 | "reference": "0abb51d2f102e00a4eefcf46ba7fec406d245825", 399 | "shasum": "" 400 | }, 401 | "require": { 402 | "php": ">=7.1" 403 | }, 404 | "provide": { 405 | "ext-mbstring": "*" 406 | }, 407 | "suggest": { 408 | "ext-mbstring": "For best performance" 409 | }, 410 | "type": "library", 411 | "extra": { 412 | "branch-alias": { 413 | "dev-main": "1.23-dev" 414 | }, 415 | "thanks": { 416 | "name": "symfony/polyfill", 417 | "url": "https://github.com/symfony/polyfill" 418 | } 419 | }, 420 | "autoload": { 421 | "files": [ 422 | "bootstrap.php" 423 | ], 424 | "psr-4": { 425 | "Symfony\\Polyfill\\Mbstring\\": "" 426 | } 427 | }, 428 | "notification-url": "https://packagist.org/downloads/", 429 | "license": [ 430 | "MIT" 431 | ], 432 | "authors": [ 433 | { 434 | "name": "Nicolas Grekas", 435 | "email": "p@tchwork.com" 436 | }, 437 | { 438 | "name": "Symfony Community", 439 | "homepage": "https://symfony.com/contributors" 440 | } 441 | ], 442 | "description": "Symfony polyfill for the Mbstring extension", 443 | "homepage": "https://symfony.com", 444 | "keywords": [ 445 | "compatibility", 446 | "mbstring", 447 | "polyfill", 448 | "portable", 449 | "shim" 450 | ], 451 | "support": { 452 | "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.25.0" 453 | }, 454 | "funding": [ 455 | { 456 | "url": "https://symfony.com/sponsor", 457 | "type": "custom" 458 | }, 459 | { 460 | "url": "https://github.com/fabpot", 461 | "type": "github" 462 | }, 463 | { 464 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 465 | "type": "tidelift" 466 | } 467 | ], 468 | "time": "2021-11-30T18:21:41+00:00" 469 | }, 470 | { 471 | "name": "symfony/polyfill-php80", 472 | "version": "v1.25.0", 473 | "source": { 474 | "type": "git", 475 | "url": "https://github.com/symfony/polyfill-php80.git", 476 | "reference": "4407588e0d3f1f52efb65fbe92babe41f37fe50c" 477 | }, 478 | "dist": { 479 | "type": "zip", 480 | "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/4407588e0d3f1f52efb65fbe92babe41f37fe50c", 481 | "reference": "4407588e0d3f1f52efb65fbe92babe41f37fe50c", 482 | "shasum": "" 483 | }, 484 | "require": { 485 | "php": ">=7.1" 486 | }, 487 | "type": "library", 488 | "extra": { 489 | "branch-alias": { 490 | "dev-main": "1.23-dev" 491 | }, 492 | "thanks": { 493 | "name": "symfony/polyfill", 494 | "url": "https://github.com/symfony/polyfill" 495 | } 496 | }, 497 | "autoload": { 498 | "files": [ 499 | "bootstrap.php" 500 | ], 501 | "psr-4": { 502 | "Symfony\\Polyfill\\Php80\\": "" 503 | }, 504 | "classmap": [ 505 | "Resources/stubs" 506 | ] 507 | }, 508 | "notification-url": "https://packagist.org/downloads/", 509 | "license": [ 510 | "MIT" 511 | ], 512 | "authors": [ 513 | { 514 | "name": "Ion Bazan", 515 | "email": "ion.bazan@gmail.com" 516 | }, 517 | { 518 | "name": "Nicolas Grekas", 519 | "email": "p@tchwork.com" 520 | }, 521 | { 522 | "name": "Symfony Community", 523 | "homepage": "https://symfony.com/contributors" 524 | } 525 | ], 526 | "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", 527 | "homepage": "https://symfony.com", 528 | "keywords": [ 529 | "compatibility", 530 | "polyfill", 531 | "portable", 532 | "shim" 533 | ], 534 | "support": { 535 | "source": "https://github.com/symfony/polyfill-php80/tree/v1.25.0" 536 | }, 537 | "funding": [ 538 | { 539 | "url": "https://symfony.com/sponsor", 540 | "type": "custom" 541 | }, 542 | { 543 | "url": "https://github.com/fabpot", 544 | "type": "github" 545 | }, 546 | { 547 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 548 | "type": "tidelift" 549 | } 550 | ], 551 | "time": "2022-03-04T08:16:47+00:00" 552 | }, 553 | { 554 | "name": "symfony/property-access", 555 | "version": "v5.4.5", 556 | "source": { 557 | "type": "git", 558 | "url": "https://github.com/symfony/property-access.git", 559 | "reference": "95534d912f61117d3bce2d4456419ee2ee548d7a" 560 | }, 561 | "dist": { 562 | "type": "zip", 563 | "url": "https://api.github.com/repos/symfony/property-access/zipball/95534d912f61117d3bce2d4456419ee2ee548d7a", 564 | "reference": "95534d912f61117d3bce2d4456419ee2ee548d7a", 565 | "shasum": "" 566 | }, 567 | "require": { 568 | "php": ">=7.2.5", 569 | "symfony/deprecation-contracts": "^2.1|^3", 570 | "symfony/polyfill-php80": "^1.16", 571 | "symfony/property-info": "^5.2|^6.0" 572 | }, 573 | "require-dev": { 574 | "symfony/cache": "^4.4|^5.0|^6.0" 575 | }, 576 | "suggest": { 577 | "psr/cache-implementation": "To cache access methods." 578 | }, 579 | "type": "library", 580 | "autoload": { 581 | "psr-4": { 582 | "Symfony\\Component\\PropertyAccess\\": "" 583 | }, 584 | "exclude-from-classmap": [ 585 | "/Tests/" 586 | ] 587 | }, 588 | "notification-url": "https://packagist.org/downloads/", 589 | "license": [ 590 | "MIT" 591 | ], 592 | "authors": [ 593 | { 594 | "name": "Fabien Potencier", 595 | "email": "fabien@symfony.com" 596 | }, 597 | { 598 | "name": "Symfony Community", 599 | "homepage": "https://symfony.com/contributors" 600 | } 601 | ], 602 | "description": "Provides functions to read and write from/to an object or array using a simple string notation", 603 | "homepage": "https://symfony.com", 604 | "keywords": [ 605 | "access", 606 | "array", 607 | "extraction", 608 | "index", 609 | "injection", 610 | "object", 611 | "property", 612 | "property path", 613 | "reflection" 614 | ], 615 | "support": { 616 | "source": "https://github.com/symfony/property-access/tree/v5.4.5" 617 | }, 618 | "funding": [ 619 | { 620 | "url": "https://symfony.com/sponsor", 621 | "type": "custom" 622 | }, 623 | { 624 | "url": "https://github.com/fabpot", 625 | "type": "github" 626 | }, 627 | { 628 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 629 | "type": "tidelift" 630 | } 631 | ], 632 | "time": "2022-02-04T18:39:09+00:00" 633 | }, 634 | { 635 | "name": "symfony/property-info", 636 | "version": "v6.0.3", 637 | "source": { 638 | "type": "git", 639 | "url": "https://github.com/symfony/property-info.git", 640 | "reference": "46e4e6d254f80d103689f2bb103b52a6f5ac2fe2" 641 | }, 642 | "dist": { 643 | "type": "zip", 644 | "url": "https://api.github.com/repos/symfony/property-info/zipball/46e4e6d254f80d103689f2bb103b52a6f5ac2fe2", 645 | "reference": "46e4e6d254f80d103689f2bb103b52a6f5ac2fe2", 646 | "shasum": "" 647 | }, 648 | "require": { 649 | "php": ">=8.0.2", 650 | "symfony/string": "^5.4|^6.0" 651 | }, 652 | "conflict": { 653 | "phpdocumentor/reflection-docblock": "<5.2", 654 | "phpdocumentor/type-resolver": "<1.4.0", 655 | "symfony/dependency-injection": "<5.4" 656 | }, 657 | "require-dev": { 658 | "doctrine/annotations": "^1.10.4", 659 | "phpdocumentor/reflection-docblock": "^5.2", 660 | "phpstan/phpdoc-parser": "^1.0", 661 | "symfony/cache": "^5.4|^6.0", 662 | "symfony/dependency-injection": "^5.4|^6.0", 663 | "symfony/serializer": "^5.4|^6.0" 664 | }, 665 | "suggest": { 666 | "phpdocumentor/reflection-docblock": "To use the PHPDoc", 667 | "psr/cache-implementation": "To cache results", 668 | "symfony/doctrine-bridge": "To use Doctrine metadata", 669 | "symfony/serializer": "To use Serializer metadata" 670 | }, 671 | "type": "library", 672 | "autoload": { 673 | "psr-4": { 674 | "Symfony\\Component\\PropertyInfo\\": "" 675 | }, 676 | "exclude-from-classmap": [ 677 | "/Tests/" 678 | ] 679 | }, 680 | "notification-url": "https://packagist.org/downloads/", 681 | "license": [ 682 | "MIT" 683 | ], 684 | "authors": [ 685 | { 686 | "name": "Kévin Dunglas", 687 | "email": "dunglas@gmail.com" 688 | }, 689 | { 690 | "name": "Symfony Community", 691 | "homepage": "https://symfony.com/contributors" 692 | } 693 | ], 694 | "description": "Extracts information about PHP class' properties using metadata of popular sources", 695 | "homepage": "https://symfony.com", 696 | "keywords": [ 697 | "doctrine", 698 | "phpdoc", 699 | "property", 700 | "symfony", 701 | "type", 702 | "validator" 703 | ], 704 | "support": { 705 | "source": "https://github.com/symfony/property-info/tree/v6.0.3" 706 | }, 707 | "funding": [ 708 | { 709 | "url": "https://symfony.com/sponsor", 710 | "type": "custom" 711 | }, 712 | { 713 | "url": "https://github.com/fabpot", 714 | "type": "github" 715 | }, 716 | { 717 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 718 | "type": "tidelift" 719 | } 720 | ], 721 | "time": "2022-01-02T09:55:41+00:00" 722 | }, 723 | { 724 | "name": "symfony/string", 725 | "version": "v6.0.3", 726 | "source": { 727 | "type": "git", 728 | "url": "https://github.com/symfony/string.git", 729 | "reference": "522144f0c4c004c80d56fa47e40e17028e2eefc2" 730 | }, 731 | "dist": { 732 | "type": "zip", 733 | "url": "https://api.github.com/repos/symfony/string/zipball/522144f0c4c004c80d56fa47e40e17028e2eefc2", 734 | "reference": "522144f0c4c004c80d56fa47e40e17028e2eefc2", 735 | "shasum": "" 736 | }, 737 | "require": { 738 | "php": ">=8.0.2", 739 | "symfony/polyfill-ctype": "~1.8", 740 | "symfony/polyfill-intl-grapheme": "~1.0", 741 | "symfony/polyfill-intl-normalizer": "~1.0", 742 | "symfony/polyfill-mbstring": "~1.0" 743 | }, 744 | "conflict": { 745 | "symfony/translation-contracts": "<2.0" 746 | }, 747 | "require-dev": { 748 | "symfony/error-handler": "^5.4|^6.0", 749 | "symfony/http-client": "^5.4|^6.0", 750 | "symfony/translation-contracts": "^2.0|^3.0", 751 | "symfony/var-exporter": "^5.4|^6.0" 752 | }, 753 | "type": "library", 754 | "autoload": { 755 | "files": [ 756 | "Resources/functions.php" 757 | ], 758 | "psr-4": { 759 | "Symfony\\Component\\String\\": "" 760 | }, 761 | "exclude-from-classmap": [ 762 | "/Tests/" 763 | ] 764 | }, 765 | "notification-url": "https://packagist.org/downloads/", 766 | "license": [ 767 | "MIT" 768 | ], 769 | "authors": [ 770 | { 771 | "name": "Nicolas Grekas", 772 | "email": "p@tchwork.com" 773 | }, 774 | { 775 | "name": "Symfony Community", 776 | "homepage": "https://symfony.com/contributors" 777 | } 778 | ], 779 | "description": "Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way", 780 | "homepage": "https://symfony.com", 781 | "keywords": [ 782 | "grapheme", 783 | "i18n", 784 | "string", 785 | "unicode", 786 | "utf-8", 787 | "utf8" 788 | ], 789 | "support": { 790 | "source": "https://github.com/symfony/string/tree/v6.0.3" 791 | }, 792 | "funding": [ 793 | { 794 | "url": "https://symfony.com/sponsor", 795 | "type": "custom" 796 | }, 797 | { 798 | "url": "https://github.com/fabpot", 799 | "type": "github" 800 | }, 801 | { 802 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 803 | "type": "tidelift" 804 | } 805 | ], 806 | "time": "2022-01-02T09:55:41+00:00" 807 | } 808 | ], 809 | "packages-dev": [ 810 | { 811 | "name": "doctrine/annotations", 812 | "version": "1.13.2", 813 | "source": { 814 | "type": "git", 815 | "url": "https://github.com/doctrine/annotations.git", 816 | "reference": "5b668aef16090008790395c02c893b1ba13f7e08" 817 | }, 818 | "dist": { 819 | "type": "zip", 820 | "url": "https://api.github.com/repos/doctrine/annotations/zipball/5b668aef16090008790395c02c893b1ba13f7e08", 821 | "reference": "5b668aef16090008790395c02c893b1ba13f7e08", 822 | "shasum": "" 823 | }, 824 | "require": { 825 | "doctrine/lexer": "1.*", 826 | "ext-tokenizer": "*", 827 | "php": "^7.1 || ^8.0", 828 | "psr/cache": "^1 || ^2 || ^3" 829 | }, 830 | "require-dev": { 831 | "doctrine/cache": "^1.11 || ^2.0", 832 | "doctrine/coding-standard": "^6.0 || ^8.1", 833 | "phpstan/phpstan": "^0.12.20", 834 | "phpunit/phpunit": "^7.5 || ^8.0 || ^9.1.5", 835 | "symfony/cache": "^4.4 || ^5.2" 836 | }, 837 | "type": "library", 838 | "autoload": { 839 | "psr-4": { 840 | "Doctrine\\Common\\Annotations\\": "lib/Doctrine/Common/Annotations" 841 | } 842 | }, 843 | "notification-url": "https://packagist.org/downloads/", 844 | "license": [ 845 | "MIT" 846 | ], 847 | "authors": [ 848 | { 849 | "name": "Guilherme Blanco", 850 | "email": "guilhermeblanco@gmail.com" 851 | }, 852 | { 853 | "name": "Roman Borschel", 854 | "email": "roman@code-factory.org" 855 | }, 856 | { 857 | "name": "Benjamin Eberlei", 858 | "email": "kontakt@beberlei.de" 859 | }, 860 | { 861 | "name": "Jonathan Wage", 862 | "email": "jonwage@gmail.com" 863 | }, 864 | { 865 | "name": "Johannes Schmitt", 866 | "email": "schmittjoh@gmail.com" 867 | } 868 | ], 869 | "description": "Docblock Annotations Parser", 870 | "homepage": "https://www.doctrine-project.org/projects/annotations.html", 871 | "keywords": [ 872 | "annotations", 873 | "docblock", 874 | "parser" 875 | ], 876 | "support": { 877 | "issues": "https://github.com/doctrine/annotations/issues", 878 | "source": "https://github.com/doctrine/annotations/tree/1.13.2" 879 | }, 880 | "time": "2021-08-05T19:00:23+00:00" 881 | }, 882 | { 883 | "name": "doctrine/cache", 884 | "version": "1.12.1", 885 | "source": { 886 | "type": "git", 887 | "url": "https://github.com/doctrine/cache.git", 888 | "reference": "4cf401d14df219fa6f38b671f5493449151c9ad8" 889 | }, 890 | "dist": { 891 | "type": "zip", 892 | "url": "https://api.github.com/repos/doctrine/cache/zipball/4cf401d14df219fa6f38b671f5493449151c9ad8", 893 | "reference": "4cf401d14df219fa6f38b671f5493449151c9ad8", 894 | "shasum": "" 895 | }, 896 | "require": { 897 | "php": "~7.1 || ^8.0" 898 | }, 899 | "conflict": { 900 | "doctrine/common": ">2.2,<2.4" 901 | }, 902 | "require-dev": { 903 | "alcaeus/mongo-php-adapter": "^1.1", 904 | "cache/integration-tests": "dev-master", 905 | "doctrine/coding-standard": "^8.0", 906 | "mongodb/mongodb": "^1.1", 907 | "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0", 908 | "predis/predis": "~1.0", 909 | "psr/cache": "^1.0 || ^2.0 || ^3.0", 910 | "symfony/cache": "^4.4 || ^5.2 || ^6.0@dev", 911 | "symfony/var-exporter": "^4.4 || ^5.2 || ^6.0@dev" 912 | }, 913 | "suggest": { 914 | "alcaeus/mongo-php-adapter": "Required to use legacy MongoDB driver" 915 | }, 916 | "type": "library", 917 | "autoload": { 918 | "psr-4": { 919 | "Doctrine\\Common\\Cache\\": "lib/Doctrine/Common/Cache" 920 | } 921 | }, 922 | "notification-url": "https://packagist.org/downloads/", 923 | "license": [ 924 | "MIT" 925 | ], 926 | "authors": [ 927 | { 928 | "name": "Guilherme Blanco", 929 | "email": "guilhermeblanco@gmail.com" 930 | }, 931 | { 932 | "name": "Roman Borschel", 933 | "email": "roman@code-factory.org" 934 | }, 935 | { 936 | "name": "Benjamin Eberlei", 937 | "email": "kontakt@beberlei.de" 938 | }, 939 | { 940 | "name": "Jonathan Wage", 941 | "email": "jonwage@gmail.com" 942 | }, 943 | { 944 | "name": "Johannes Schmitt", 945 | "email": "schmittjoh@gmail.com" 946 | } 947 | ], 948 | "description": "PHP Doctrine Cache library is a popular cache implementation that supports many different drivers such as redis, memcache, apc, mongodb and others.", 949 | "homepage": "https://www.doctrine-project.org/projects/cache.html", 950 | "keywords": [ 951 | "abstraction", 952 | "apcu", 953 | "cache", 954 | "caching", 955 | "couchdb", 956 | "memcached", 957 | "php", 958 | "redis", 959 | "xcache" 960 | ], 961 | "support": { 962 | "issues": "https://github.com/doctrine/cache/issues", 963 | "source": "https://github.com/doctrine/cache/tree/1.12.1" 964 | }, 965 | "funding": [ 966 | { 967 | "url": "https://www.doctrine-project.org/sponsorship.html", 968 | "type": "custom" 969 | }, 970 | { 971 | "url": "https://www.patreon.com/phpdoctrine", 972 | "type": "patreon" 973 | }, 974 | { 975 | "url": "https://tidelift.com/funding/github/packagist/doctrine%2Fcache", 976 | "type": "tidelift" 977 | } 978 | ], 979 | "time": "2021-07-17T14:39:21+00:00" 980 | }, 981 | { 982 | "name": "doctrine/collections", 983 | "version": "1.6.8", 984 | "source": { 985 | "type": "git", 986 | "url": "https://github.com/doctrine/collections.git", 987 | "reference": "1958a744696c6bb3bb0d28db2611dc11610e78af" 988 | }, 989 | "dist": { 990 | "type": "zip", 991 | "url": "https://api.github.com/repos/doctrine/collections/zipball/1958a744696c6bb3bb0d28db2611dc11610e78af", 992 | "reference": "1958a744696c6bb3bb0d28db2611dc11610e78af", 993 | "shasum": "" 994 | }, 995 | "require": { 996 | "php": "^7.1.3 || ^8.0" 997 | }, 998 | "require-dev": { 999 | "doctrine/coding-standard": "^9.0", 1000 | "phpstan/phpstan": "^0.12", 1001 | "phpunit/phpunit": "^7.5 || ^8.5 || ^9.1.5", 1002 | "vimeo/psalm": "^4.2.1" 1003 | }, 1004 | "type": "library", 1005 | "autoload": { 1006 | "psr-4": { 1007 | "Doctrine\\Common\\Collections\\": "lib/Doctrine/Common/Collections" 1008 | } 1009 | }, 1010 | "notification-url": "https://packagist.org/downloads/", 1011 | "license": [ 1012 | "MIT" 1013 | ], 1014 | "authors": [ 1015 | { 1016 | "name": "Guilherme Blanco", 1017 | "email": "guilhermeblanco@gmail.com" 1018 | }, 1019 | { 1020 | "name": "Roman Borschel", 1021 | "email": "roman@code-factory.org" 1022 | }, 1023 | { 1024 | "name": "Benjamin Eberlei", 1025 | "email": "kontakt@beberlei.de" 1026 | }, 1027 | { 1028 | "name": "Jonathan Wage", 1029 | "email": "jonwage@gmail.com" 1030 | }, 1031 | { 1032 | "name": "Johannes Schmitt", 1033 | "email": "schmittjoh@gmail.com" 1034 | } 1035 | ], 1036 | "description": "PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.", 1037 | "homepage": "https://www.doctrine-project.org/projects/collections.html", 1038 | "keywords": [ 1039 | "array", 1040 | "collections", 1041 | "iterators", 1042 | "php" 1043 | ], 1044 | "support": { 1045 | "issues": "https://github.com/doctrine/collections/issues", 1046 | "source": "https://github.com/doctrine/collections/tree/1.6.8" 1047 | }, 1048 | "time": "2021-08-10T18:51:53+00:00" 1049 | }, 1050 | { 1051 | "name": "doctrine/common", 1052 | "version": "2.13.3", 1053 | "source": { 1054 | "type": "git", 1055 | "url": "https://github.com/doctrine/common.git", 1056 | "reference": "f3812c026e557892c34ef37f6ab808a6b567da7f" 1057 | }, 1058 | "dist": { 1059 | "type": "zip", 1060 | "url": "https://api.github.com/repos/doctrine/common/zipball/f3812c026e557892c34ef37f6ab808a6b567da7f", 1061 | "reference": "f3812c026e557892c34ef37f6ab808a6b567da7f", 1062 | "shasum": "" 1063 | }, 1064 | "require": { 1065 | "doctrine/annotations": "^1.0", 1066 | "doctrine/cache": "^1.0", 1067 | "doctrine/collections": "^1.0", 1068 | "doctrine/event-manager": "^1.0", 1069 | "doctrine/inflector": "^1.0", 1070 | "doctrine/lexer": "^1.0", 1071 | "doctrine/persistence": "^1.3.3", 1072 | "doctrine/reflection": "^1.0", 1073 | "php": "^7.1 || ^8.0" 1074 | }, 1075 | "require-dev": { 1076 | "doctrine/coding-standard": "^1.0", 1077 | "phpstan/phpstan": "^0.11", 1078 | "phpstan/phpstan-phpunit": "^0.11", 1079 | "phpunit/phpunit": "^7.0", 1080 | "squizlabs/php_codesniffer": "^3.0", 1081 | "symfony/phpunit-bridge": "^4.0.5" 1082 | }, 1083 | "type": "library", 1084 | "extra": { 1085 | "branch-alias": { 1086 | "dev-master": "2.11.x-dev" 1087 | } 1088 | }, 1089 | "autoload": { 1090 | "psr-4": { 1091 | "Doctrine\\Common\\": "lib/Doctrine/Common" 1092 | } 1093 | }, 1094 | "notification-url": "https://packagist.org/downloads/", 1095 | "license": [ 1096 | "MIT" 1097 | ], 1098 | "authors": [ 1099 | { 1100 | "name": "Guilherme Blanco", 1101 | "email": "guilhermeblanco@gmail.com" 1102 | }, 1103 | { 1104 | "name": "Roman Borschel", 1105 | "email": "roman@code-factory.org" 1106 | }, 1107 | { 1108 | "name": "Benjamin Eberlei", 1109 | "email": "kontakt@beberlei.de" 1110 | }, 1111 | { 1112 | "name": "Jonathan Wage", 1113 | "email": "jonwage@gmail.com" 1114 | }, 1115 | { 1116 | "name": "Johannes Schmitt", 1117 | "email": "schmittjoh@gmail.com" 1118 | }, 1119 | { 1120 | "name": "Marco Pivetta", 1121 | "email": "ocramius@gmail.com" 1122 | } 1123 | ], 1124 | "description": "PHP Doctrine Common project is a library that provides additional functionality that other Doctrine projects depend on such as better reflection support, persistence interfaces, proxies, event system and much more.", 1125 | "homepage": "https://www.doctrine-project.org/projects/common.html", 1126 | "keywords": [ 1127 | "common", 1128 | "doctrine", 1129 | "php" 1130 | ], 1131 | "support": { 1132 | "issues": "https://github.com/doctrine/common/issues", 1133 | "source": "https://github.com/doctrine/common/tree/2.13.x" 1134 | }, 1135 | "funding": [ 1136 | { 1137 | "url": "https://www.doctrine-project.org/sponsorship.html", 1138 | "type": "custom" 1139 | }, 1140 | { 1141 | "url": "https://www.patreon.com/phpdoctrine", 1142 | "type": "patreon" 1143 | }, 1144 | { 1145 | "url": "https://tidelift.com/funding/github/packagist/doctrine%2Fcommon", 1146 | "type": "tidelift" 1147 | } 1148 | ], 1149 | "time": "2020-06-05T16:46:05+00:00" 1150 | }, 1151 | { 1152 | "name": "doctrine/event-manager", 1153 | "version": "1.1.1", 1154 | "source": { 1155 | "type": "git", 1156 | "url": "https://github.com/doctrine/event-manager.git", 1157 | "reference": "41370af6a30faa9dc0368c4a6814d596e81aba7f" 1158 | }, 1159 | "dist": { 1160 | "type": "zip", 1161 | "url": "https://api.github.com/repos/doctrine/event-manager/zipball/41370af6a30faa9dc0368c4a6814d596e81aba7f", 1162 | "reference": "41370af6a30faa9dc0368c4a6814d596e81aba7f", 1163 | "shasum": "" 1164 | }, 1165 | "require": { 1166 | "php": "^7.1 || ^8.0" 1167 | }, 1168 | "conflict": { 1169 | "doctrine/common": "<2.9@dev" 1170 | }, 1171 | "require-dev": { 1172 | "doctrine/coding-standard": "^6.0", 1173 | "phpunit/phpunit": "^7.0" 1174 | }, 1175 | "type": "library", 1176 | "extra": { 1177 | "branch-alias": { 1178 | "dev-master": "1.0.x-dev" 1179 | } 1180 | }, 1181 | "autoload": { 1182 | "psr-4": { 1183 | "Doctrine\\Common\\": "lib/Doctrine/Common" 1184 | } 1185 | }, 1186 | "notification-url": "https://packagist.org/downloads/", 1187 | "license": [ 1188 | "MIT" 1189 | ], 1190 | "authors": [ 1191 | { 1192 | "name": "Guilherme Blanco", 1193 | "email": "guilhermeblanco@gmail.com" 1194 | }, 1195 | { 1196 | "name": "Roman Borschel", 1197 | "email": "roman@code-factory.org" 1198 | }, 1199 | { 1200 | "name": "Benjamin Eberlei", 1201 | "email": "kontakt@beberlei.de" 1202 | }, 1203 | { 1204 | "name": "Jonathan Wage", 1205 | "email": "jonwage@gmail.com" 1206 | }, 1207 | { 1208 | "name": "Johannes Schmitt", 1209 | "email": "schmittjoh@gmail.com" 1210 | }, 1211 | { 1212 | "name": "Marco Pivetta", 1213 | "email": "ocramius@gmail.com" 1214 | } 1215 | ], 1216 | "description": "The Doctrine Event Manager is a simple PHP event system that was built to be used with the various Doctrine projects.", 1217 | "homepage": "https://www.doctrine-project.org/projects/event-manager.html", 1218 | "keywords": [ 1219 | "event", 1220 | "event dispatcher", 1221 | "event manager", 1222 | "event system", 1223 | "events" 1224 | ], 1225 | "support": { 1226 | "issues": "https://github.com/doctrine/event-manager/issues", 1227 | "source": "https://github.com/doctrine/event-manager/tree/1.1.x" 1228 | }, 1229 | "funding": [ 1230 | { 1231 | "url": "https://www.doctrine-project.org/sponsorship.html", 1232 | "type": "custom" 1233 | }, 1234 | { 1235 | "url": "https://www.patreon.com/phpdoctrine", 1236 | "type": "patreon" 1237 | }, 1238 | { 1239 | "url": "https://tidelift.com/funding/github/packagist/doctrine%2Fevent-manager", 1240 | "type": "tidelift" 1241 | } 1242 | ], 1243 | "time": "2020-05-29T18:28:51+00:00" 1244 | }, 1245 | { 1246 | "name": "doctrine/inflector", 1247 | "version": "1.4.4", 1248 | "source": { 1249 | "type": "git", 1250 | "url": "https://github.com/doctrine/inflector.git", 1251 | "reference": "4bd5c1cdfcd00e9e2d8c484f79150f67e5d355d9" 1252 | }, 1253 | "dist": { 1254 | "type": "zip", 1255 | "url": "https://api.github.com/repos/doctrine/inflector/zipball/4bd5c1cdfcd00e9e2d8c484f79150f67e5d355d9", 1256 | "reference": "4bd5c1cdfcd00e9e2d8c484f79150f67e5d355d9", 1257 | "shasum": "" 1258 | }, 1259 | "require": { 1260 | "php": "^7.1 || ^8.0" 1261 | }, 1262 | "require-dev": { 1263 | "doctrine/coding-standard": "^8.0", 1264 | "phpstan/phpstan": "^0.12", 1265 | "phpstan/phpstan-phpunit": "^0.12", 1266 | "phpstan/phpstan-strict-rules": "^0.12", 1267 | "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0" 1268 | }, 1269 | "type": "library", 1270 | "extra": { 1271 | "branch-alias": { 1272 | "dev-master": "2.0.x-dev" 1273 | } 1274 | }, 1275 | "autoload": { 1276 | "psr-4": { 1277 | "Doctrine\\Inflector\\": "lib/Doctrine/Inflector", 1278 | "Doctrine\\Common\\Inflector\\": "lib/Doctrine/Common/Inflector" 1279 | } 1280 | }, 1281 | "notification-url": "https://packagist.org/downloads/", 1282 | "license": [ 1283 | "MIT" 1284 | ], 1285 | "authors": [ 1286 | { 1287 | "name": "Guilherme Blanco", 1288 | "email": "guilhermeblanco@gmail.com" 1289 | }, 1290 | { 1291 | "name": "Roman Borschel", 1292 | "email": "roman@code-factory.org" 1293 | }, 1294 | { 1295 | "name": "Benjamin Eberlei", 1296 | "email": "kontakt@beberlei.de" 1297 | }, 1298 | { 1299 | "name": "Jonathan Wage", 1300 | "email": "jonwage@gmail.com" 1301 | }, 1302 | { 1303 | "name": "Johannes Schmitt", 1304 | "email": "schmittjoh@gmail.com" 1305 | } 1306 | ], 1307 | "description": "PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and singular/plural forms of words.", 1308 | "homepage": "https://www.doctrine-project.org/projects/inflector.html", 1309 | "keywords": [ 1310 | "inflection", 1311 | "inflector", 1312 | "lowercase", 1313 | "manipulation", 1314 | "php", 1315 | "plural", 1316 | "singular", 1317 | "strings", 1318 | "uppercase", 1319 | "words" 1320 | ], 1321 | "support": { 1322 | "issues": "https://github.com/doctrine/inflector/issues", 1323 | "source": "https://github.com/doctrine/inflector/tree/1.4.4" 1324 | }, 1325 | "funding": [ 1326 | { 1327 | "url": "https://www.doctrine-project.org/sponsorship.html", 1328 | "type": "custom" 1329 | }, 1330 | { 1331 | "url": "https://www.patreon.com/phpdoctrine", 1332 | "type": "patreon" 1333 | }, 1334 | { 1335 | "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finflector", 1336 | "type": "tidelift" 1337 | } 1338 | ], 1339 | "time": "2021-04-16T17:34:40+00:00" 1340 | }, 1341 | { 1342 | "name": "doctrine/instantiator", 1343 | "version": "1.4.1", 1344 | "source": { 1345 | "type": "git", 1346 | "url": "https://github.com/doctrine/instantiator.git", 1347 | "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc" 1348 | }, 1349 | "dist": { 1350 | "type": "zip", 1351 | "url": "https://api.github.com/repos/doctrine/instantiator/zipball/10dcfce151b967d20fde1b34ae6640712c3891bc", 1352 | "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc", 1353 | "shasum": "" 1354 | }, 1355 | "require": { 1356 | "php": "^7.1 || ^8.0" 1357 | }, 1358 | "require-dev": { 1359 | "doctrine/coding-standard": "^9", 1360 | "ext-pdo": "*", 1361 | "ext-phar": "*", 1362 | "phpbench/phpbench": "^0.16 || ^1", 1363 | "phpstan/phpstan": "^1.4", 1364 | "phpstan/phpstan-phpunit": "^1", 1365 | "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", 1366 | "vimeo/psalm": "^4.22" 1367 | }, 1368 | "type": "library", 1369 | "autoload": { 1370 | "psr-4": { 1371 | "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" 1372 | } 1373 | }, 1374 | "notification-url": "https://packagist.org/downloads/", 1375 | "license": [ 1376 | "MIT" 1377 | ], 1378 | "authors": [ 1379 | { 1380 | "name": "Marco Pivetta", 1381 | "email": "ocramius@gmail.com", 1382 | "homepage": "https://ocramius.github.io/" 1383 | } 1384 | ], 1385 | "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", 1386 | "homepage": "https://www.doctrine-project.org/projects/instantiator.html", 1387 | "keywords": [ 1388 | "constructor", 1389 | "instantiate" 1390 | ], 1391 | "support": { 1392 | "issues": "https://github.com/doctrine/instantiator/issues", 1393 | "source": "https://github.com/doctrine/instantiator/tree/1.4.1" 1394 | }, 1395 | "funding": [ 1396 | { 1397 | "url": "https://www.doctrine-project.org/sponsorship.html", 1398 | "type": "custom" 1399 | }, 1400 | { 1401 | "url": "https://www.patreon.com/phpdoctrine", 1402 | "type": "patreon" 1403 | }, 1404 | { 1405 | "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", 1406 | "type": "tidelift" 1407 | } 1408 | ], 1409 | "time": "2022-03-03T08:28:38+00:00" 1410 | }, 1411 | { 1412 | "name": "doctrine/lexer", 1413 | "version": "1.2.3", 1414 | "source": { 1415 | "type": "git", 1416 | "url": "https://github.com/doctrine/lexer.git", 1417 | "reference": "c268e882d4dbdd85e36e4ad69e02dc284f89d229" 1418 | }, 1419 | "dist": { 1420 | "type": "zip", 1421 | "url": "https://api.github.com/repos/doctrine/lexer/zipball/c268e882d4dbdd85e36e4ad69e02dc284f89d229", 1422 | "reference": "c268e882d4dbdd85e36e4ad69e02dc284f89d229", 1423 | "shasum": "" 1424 | }, 1425 | "require": { 1426 | "php": "^7.1 || ^8.0" 1427 | }, 1428 | "require-dev": { 1429 | "doctrine/coding-standard": "^9.0", 1430 | "phpstan/phpstan": "^1.3", 1431 | "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", 1432 | "vimeo/psalm": "^4.11" 1433 | }, 1434 | "type": "library", 1435 | "autoload": { 1436 | "psr-4": { 1437 | "Doctrine\\Common\\Lexer\\": "lib/Doctrine/Common/Lexer" 1438 | } 1439 | }, 1440 | "notification-url": "https://packagist.org/downloads/", 1441 | "license": [ 1442 | "MIT" 1443 | ], 1444 | "authors": [ 1445 | { 1446 | "name": "Guilherme Blanco", 1447 | "email": "guilhermeblanco@gmail.com" 1448 | }, 1449 | { 1450 | "name": "Roman Borschel", 1451 | "email": "roman@code-factory.org" 1452 | }, 1453 | { 1454 | "name": "Johannes Schmitt", 1455 | "email": "schmittjoh@gmail.com" 1456 | } 1457 | ], 1458 | "description": "PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.", 1459 | "homepage": "https://www.doctrine-project.org/projects/lexer.html", 1460 | "keywords": [ 1461 | "annotations", 1462 | "docblock", 1463 | "lexer", 1464 | "parser", 1465 | "php" 1466 | ], 1467 | "support": { 1468 | "issues": "https://github.com/doctrine/lexer/issues", 1469 | "source": "https://github.com/doctrine/lexer/tree/1.2.3" 1470 | }, 1471 | "funding": [ 1472 | { 1473 | "url": "https://www.doctrine-project.org/sponsorship.html", 1474 | "type": "custom" 1475 | }, 1476 | { 1477 | "url": "https://www.patreon.com/phpdoctrine", 1478 | "type": "patreon" 1479 | }, 1480 | { 1481 | "url": "https://tidelift.com/funding/github/packagist/doctrine%2Flexer", 1482 | "type": "tidelift" 1483 | } 1484 | ], 1485 | "time": "2022-02-28T11:07:21+00:00" 1486 | }, 1487 | { 1488 | "name": "doctrine/persistence", 1489 | "version": "1.3.8", 1490 | "source": { 1491 | "type": "git", 1492 | "url": "https://github.com/doctrine/persistence.git", 1493 | "reference": "7a6eac9fb6f61bba91328f15aa7547f4806ca288" 1494 | }, 1495 | "dist": { 1496 | "type": "zip", 1497 | "url": "https://api.github.com/repos/doctrine/persistence/zipball/7a6eac9fb6f61bba91328f15aa7547f4806ca288", 1498 | "reference": "7a6eac9fb6f61bba91328f15aa7547f4806ca288", 1499 | "shasum": "" 1500 | }, 1501 | "require": { 1502 | "doctrine/annotations": "^1.0", 1503 | "doctrine/cache": "^1.0", 1504 | "doctrine/collections": "^1.0", 1505 | "doctrine/event-manager": "^1.0", 1506 | "doctrine/reflection": "^1.2", 1507 | "php": "^7.1 || ^8.0" 1508 | }, 1509 | "conflict": { 1510 | "doctrine/common": "<2.10@dev" 1511 | }, 1512 | "require-dev": { 1513 | "doctrine/coding-standard": "^6.0", 1514 | "phpstan/phpstan": "^0.11", 1515 | "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0", 1516 | "vimeo/psalm": "^3.11" 1517 | }, 1518 | "type": "library", 1519 | "extra": { 1520 | "branch-alias": { 1521 | "dev-master": "1.3.x-dev" 1522 | } 1523 | }, 1524 | "autoload": { 1525 | "psr-4": { 1526 | "Doctrine\\Common\\": "lib/Doctrine/Common", 1527 | "Doctrine\\Persistence\\": "lib/Doctrine/Persistence" 1528 | } 1529 | }, 1530 | "notification-url": "https://packagist.org/downloads/", 1531 | "license": [ 1532 | "MIT" 1533 | ], 1534 | "authors": [ 1535 | { 1536 | "name": "Guilherme Blanco", 1537 | "email": "guilhermeblanco@gmail.com" 1538 | }, 1539 | { 1540 | "name": "Roman Borschel", 1541 | "email": "roman@code-factory.org" 1542 | }, 1543 | { 1544 | "name": "Benjamin Eberlei", 1545 | "email": "kontakt@beberlei.de" 1546 | }, 1547 | { 1548 | "name": "Jonathan Wage", 1549 | "email": "jonwage@gmail.com" 1550 | }, 1551 | { 1552 | "name": "Johannes Schmitt", 1553 | "email": "schmittjoh@gmail.com" 1554 | }, 1555 | { 1556 | "name": "Marco Pivetta", 1557 | "email": "ocramius@gmail.com" 1558 | } 1559 | ], 1560 | "description": "The Doctrine Persistence project is a set of shared interfaces and functionality that the different Doctrine object mappers share.", 1561 | "homepage": "https://doctrine-project.org/projects/persistence.html", 1562 | "keywords": [ 1563 | "mapper", 1564 | "object", 1565 | "odm", 1566 | "orm", 1567 | "persistence" 1568 | ], 1569 | "support": { 1570 | "issues": "https://github.com/doctrine/persistence/issues", 1571 | "source": "https://github.com/doctrine/persistence/tree/1.3.x" 1572 | }, 1573 | "funding": [ 1574 | { 1575 | "url": "https://www.doctrine-project.org/sponsorship.html", 1576 | "type": "custom" 1577 | }, 1578 | { 1579 | "url": "https://www.patreon.com/phpdoctrine", 1580 | "type": "patreon" 1581 | }, 1582 | { 1583 | "url": "https://tidelift.com/funding/github/packagist/doctrine%2Fpersistence", 1584 | "type": "tidelift" 1585 | } 1586 | ], 1587 | "time": "2020-06-20T12:56:16+00:00" 1588 | }, 1589 | { 1590 | "name": "doctrine/reflection", 1591 | "version": "1.2.2", 1592 | "source": { 1593 | "type": "git", 1594 | "url": "https://github.com/doctrine/reflection.git", 1595 | "reference": "fa587178be682efe90d005e3a322590d6ebb59a5" 1596 | }, 1597 | "dist": { 1598 | "type": "zip", 1599 | "url": "https://api.github.com/repos/doctrine/reflection/zipball/fa587178be682efe90d005e3a322590d6ebb59a5", 1600 | "reference": "fa587178be682efe90d005e3a322590d6ebb59a5", 1601 | "shasum": "" 1602 | }, 1603 | "require": { 1604 | "doctrine/annotations": "^1.0", 1605 | "ext-tokenizer": "*", 1606 | "php": "^7.1 || ^8.0" 1607 | }, 1608 | "conflict": { 1609 | "doctrine/common": "<2.9" 1610 | }, 1611 | "require-dev": { 1612 | "doctrine/coding-standard": "^6.0 || ^8.2.0", 1613 | "doctrine/common": "^2.10", 1614 | "phpstan/phpstan": "^0.11.0 || ^0.12.20", 1615 | "phpstan/phpstan-phpunit": "^0.11.0 || ^0.12.16", 1616 | "phpunit/phpunit": "^7.5 || ^9.1.5" 1617 | }, 1618 | "type": "library", 1619 | "extra": { 1620 | "branch-alias": { 1621 | "dev-master": "1.2.x-dev" 1622 | } 1623 | }, 1624 | "autoload": { 1625 | "psr-4": { 1626 | "Doctrine\\Common\\": "lib/Doctrine/Common" 1627 | } 1628 | }, 1629 | "notification-url": "https://packagist.org/downloads/", 1630 | "license": [ 1631 | "MIT" 1632 | ], 1633 | "authors": [ 1634 | { 1635 | "name": "Guilherme Blanco", 1636 | "email": "guilhermeblanco@gmail.com" 1637 | }, 1638 | { 1639 | "name": "Roman Borschel", 1640 | "email": "roman@code-factory.org" 1641 | }, 1642 | { 1643 | "name": "Benjamin Eberlei", 1644 | "email": "kontakt@beberlei.de" 1645 | }, 1646 | { 1647 | "name": "Jonathan Wage", 1648 | "email": "jonwage@gmail.com" 1649 | }, 1650 | { 1651 | "name": "Johannes Schmitt", 1652 | "email": "schmittjoh@gmail.com" 1653 | }, 1654 | { 1655 | "name": "Marco Pivetta", 1656 | "email": "ocramius@gmail.com" 1657 | } 1658 | ], 1659 | "description": "The Doctrine Reflection project is a simple library used by the various Doctrine projects which adds some additional functionality on top of the reflection functionality that comes with PHP. It allows you to get the reflection information about classes, methods and properties statically.", 1660 | "homepage": "https://www.doctrine-project.org/projects/reflection.html", 1661 | "keywords": [ 1662 | "reflection", 1663 | "static" 1664 | ], 1665 | "support": { 1666 | "issues": "https://github.com/doctrine/reflection/issues", 1667 | "source": "https://github.com/doctrine/reflection/tree/1.2.2" 1668 | }, 1669 | "abandoned": "roave/better-reflection", 1670 | "time": "2020-10-27T21:46:55+00:00" 1671 | }, 1672 | { 1673 | "name": "myclabs/deep-copy", 1674 | "version": "1.11.0", 1675 | "source": { 1676 | "type": "git", 1677 | "url": "https://github.com/myclabs/DeepCopy.git", 1678 | "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614" 1679 | }, 1680 | "dist": { 1681 | "type": "zip", 1682 | "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/14daed4296fae74d9e3201d2c4925d1acb7aa614", 1683 | "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614", 1684 | "shasum": "" 1685 | }, 1686 | "require": { 1687 | "php": "^7.1 || ^8.0" 1688 | }, 1689 | "conflict": { 1690 | "doctrine/collections": "<1.6.8", 1691 | "doctrine/common": "<2.13.3 || >=3,<3.2.2" 1692 | }, 1693 | "require-dev": { 1694 | "doctrine/collections": "^1.6.8", 1695 | "doctrine/common": "^2.13.3 || ^3.2.2", 1696 | "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" 1697 | }, 1698 | "type": "library", 1699 | "autoload": { 1700 | "files": [ 1701 | "src/DeepCopy/deep_copy.php" 1702 | ], 1703 | "psr-4": { 1704 | "DeepCopy\\": "src/DeepCopy/" 1705 | } 1706 | }, 1707 | "notification-url": "https://packagist.org/downloads/", 1708 | "license": [ 1709 | "MIT" 1710 | ], 1711 | "description": "Create deep copies (clones) of your objects", 1712 | "keywords": [ 1713 | "clone", 1714 | "copy", 1715 | "duplicate", 1716 | "object", 1717 | "object graph" 1718 | ], 1719 | "support": { 1720 | "issues": "https://github.com/myclabs/DeepCopy/issues", 1721 | "source": "https://github.com/myclabs/DeepCopy/tree/1.11.0" 1722 | }, 1723 | "funding": [ 1724 | { 1725 | "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", 1726 | "type": "tidelift" 1727 | } 1728 | ], 1729 | "time": "2022-03-03T13:19:32+00:00" 1730 | }, 1731 | { 1732 | "name": "nikic/php-parser", 1733 | "version": "v4.13.2", 1734 | "source": { 1735 | "type": "git", 1736 | "url": "https://github.com/nikic/PHP-Parser.git", 1737 | "reference": "210577fe3cf7badcc5814d99455df46564f3c077" 1738 | }, 1739 | "dist": { 1740 | "type": "zip", 1741 | "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/210577fe3cf7badcc5814d99455df46564f3c077", 1742 | "reference": "210577fe3cf7badcc5814d99455df46564f3c077", 1743 | "shasum": "" 1744 | }, 1745 | "require": { 1746 | "ext-tokenizer": "*", 1747 | "php": ">=7.0" 1748 | }, 1749 | "require-dev": { 1750 | "ircmaxell/php-yacc": "^0.0.7", 1751 | "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0" 1752 | }, 1753 | "bin": [ 1754 | "bin/php-parse" 1755 | ], 1756 | "type": "library", 1757 | "extra": { 1758 | "branch-alias": { 1759 | "dev-master": "4.9-dev" 1760 | } 1761 | }, 1762 | "autoload": { 1763 | "psr-4": { 1764 | "PhpParser\\": "lib/PhpParser" 1765 | } 1766 | }, 1767 | "notification-url": "https://packagist.org/downloads/", 1768 | "license": [ 1769 | "BSD-3-Clause" 1770 | ], 1771 | "authors": [ 1772 | { 1773 | "name": "Nikita Popov" 1774 | } 1775 | ], 1776 | "description": "A PHP parser written in PHP", 1777 | "keywords": [ 1778 | "parser", 1779 | "php" 1780 | ], 1781 | "support": { 1782 | "issues": "https://github.com/nikic/PHP-Parser/issues", 1783 | "source": "https://github.com/nikic/PHP-Parser/tree/v4.13.2" 1784 | }, 1785 | "time": "2021-11-30T19:35:32+00:00" 1786 | }, 1787 | { 1788 | "name": "phar-io/manifest", 1789 | "version": "2.0.3", 1790 | "source": { 1791 | "type": "git", 1792 | "url": "https://github.com/phar-io/manifest.git", 1793 | "reference": "97803eca37d319dfa7826cc2437fc020857acb53" 1794 | }, 1795 | "dist": { 1796 | "type": "zip", 1797 | "url": "https://api.github.com/repos/phar-io/manifest/zipball/97803eca37d319dfa7826cc2437fc020857acb53", 1798 | "reference": "97803eca37d319dfa7826cc2437fc020857acb53", 1799 | "shasum": "" 1800 | }, 1801 | "require": { 1802 | "ext-dom": "*", 1803 | "ext-phar": "*", 1804 | "ext-xmlwriter": "*", 1805 | "phar-io/version": "^3.0.1", 1806 | "php": "^7.2 || ^8.0" 1807 | }, 1808 | "type": "library", 1809 | "extra": { 1810 | "branch-alias": { 1811 | "dev-master": "2.0.x-dev" 1812 | } 1813 | }, 1814 | "autoload": { 1815 | "classmap": [ 1816 | "src/" 1817 | ] 1818 | }, 1819 | "notification-url": "https://packagist.org/downloads/", 1820 | "license": [ 1821 | "BSD-3-Clause" 1822 | ], 1823 | "authors": [ 1824 | { 1825 | "name": "Arne Blankerts", 1826 | "email": "arne@blankerts.de", 1827 | "role": "Developer" 1828 | }, 1829 | { 1830 | "name": "Sebastian Heuer", 1831 | "email": "sebastian@phpeople.de", 1832 | "role": "Developer" 1833 | }, 1834 | { 1835 | "name": "Sebastian Bergmann", 1836 | "email": "sebastian@phpunit.de", 1837 | "role": "Developer" 1838 | } 1839 | ], 1840 | "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", 1841 | "support": { 1842 | "issues": "https://github.com/phar-io/manifest/issues", 1843 | "source": "https://github.com/phar-io/manifest/tree/2.0.3" 1844 | }, 1845 | "time": "2021-07-20T11:28:43+00:00" 1846 | }, 1847 | { 1848 | "name": "phar-io/version", 1849 | "version": "3.2.1", 1850 | "source": { 1851 | "type": "git", 1852 | "url": "https://github.com/phar-io/version.git", 1853 | "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74" 1854 | }, 1855 | "dist": { 1856 | "type": "zip", 1857 | "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74", 1858 | "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74", 1859 | "shasum": "" 1860 | }, 1861 | "require": { 1862 | "php": "^7.2 || ^8.0" 1863 | }, 1864 | "type": "library", 1865 | "autoload": { 1866 | "classmap": [ 1867 | "src/" 1868 | ] 1869 | }, 1870 | "notification-url": "https://packagist.org/downloads/", 1871 | "license": [ 1872 | "BSD-3-Clause" 1873 | ], 1874 | "authors": [ 1875 | { 1876 | "name": "Arne Blankerts", 1877 | "email": "arne@blankerts.de", 1878 | "role": "Developer" 1879 | }, 1880 | { 1881 | "name": "Sebastian Heuer", 1882 | "email": "sebastian@phpeople.de", 1883 | "role": "Developer" 1884 | }, 1885 | { 1886 | "name": "Sebastian Bergmann", 1887 | "email": "sebastian@phpunit.de", 1888 | "role": "Developer" 1889 | } 1890 | ], 1891 | "description": "Library for handling version information and constraints", 1892 | "support": { 1893 | "issues": "https://github.com/phar-io/version/issues", 1894 | "source": "https://github.com/phar-io/version/tree/3.2.1" 1895 | }, 1896 | "time": "2022-02-21T01:04:05+00:00" 1897 | }, 1898 | { 1899 | "name": "phpdocumentor/reflection-common", 1900 | "version": "2.2.0", 1901 | "source": { 1902 | "type": "git", 1903 | "url": "https://github.com/phpDocumentor/ReflectionCommon.git", 1904 | "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b" 1905 | }, 1906 | "dist": { 1907 | "type": "zip", 1908 | "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b", 1909 | "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b", 1910 | "shasum": "" 1911 | }, 1912 | "require": { 1913 | "php": "^7.2 || ^8.0" 1914 | }, 1915 | "type": "library", 1916 | "extra": { 1917 | "branch-alias": { 1918 | "dev-2.x": "2.x-dev" 1919 | } 1920 | }, 1921 | "autoload": { 1922 | "psr-4": { 1923 | "phpDocumentor\\Reflection\\": "src/" 1924 | } 1925 | }, 1926 | "notification-url": "https://packagist.org/downloads/", 1927 | "license": [ 1928 | "MIT" 1929 | ], 1930 | "authors": [ 1931 | { 1932 | "name": "Jaap van Otterdijk", 1933 | "email": "opensource@ijaap.nl" 1934 | } 1935 | ], 1936 | "description": "Common reflection classes used by phpdocumentor to reflect the code structure", 1937 | "homepage": "http://www.phpdoc.org", 1938 | "keywords": [ 1939 | "FQSEN", 1940 | "phpDocumentor", 1941 | "phpdoc", 1942 | "reflection", 1943 | "static analysis" 1944 | ], 1945 | "support": { 1946 | "issues": "https://github.com/phpDocumentor/ReflectionCommon/issues", 1947 | "source": "https://github.com/phpDocumentor/ReflectionCommon/tree/2.x" 1948 | }, 1949 | "time": "2020-06-27T09:03:43+00:00" 1950 | }, 1951 | { 1952 | "name": "phpdocumentor/reflection-docblock", 1953 | "version": "5.3.0", 1954 | "source": { 1955 | "type": "git", 1956 | "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", 1957 | "reference": "622548b623e81ca6d78b721c5e029f4ce664f170" 1958 | }, 1959 | "dist": { 1960 | "type": "zip", 1961 | "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/622548b623e81ca6d78b721c5e029f4ce664f170", 1962 | "reference": "622548b623e81ca6d78b721c5e029f4ce664f170", 1963 | "shasum": "" 1964 | }, 1965 | "require": { 1966 | "ext-filter": "*", 1967 | "php": "^7.2 || ^8.0", 1968 | "phpdocumentor/reflection-common": "^2.2", 1969 | "phpdocumentor/type-resolver": "^1.3", 1970 | "webmozart/assert": "^1.9.1" 1971 | }, 1972 | "require-dev": { 1973 | "mockery/mockery": "~1.3.2", 1974 | "psalm/phar": "^4.8" 1975 | }, 1976 | "type": "library", 1977 | "extra": { 1978 | "branch-alias": { 1979 | "dev-master": "5.x-dev" 1980 | } 1981 | }, 1982 | "autoload": { 1983 | "psr-4": { 1984 | "phpDocumentor\\Reflection\\": "src" 1985 | } 1986 | }, 1987 | "notification-url": "https://packagist.org/downloads/", 1988 | "license": [ 1989 | "MIT" 1990 | ], 1991 | "authors": [ 1992 | { 1993 | "name": "Mike van Riel", 1994 | "email": "me@mikevanriel.com" 1995 | }, 1996 | { 1997 | "name": "Jaap van Otterdijk", 1998 | "email": "account@ijaap.nl" 1999 | } 2000 | ], 2001 | "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", 2002 | "support": { 2003 | "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", 2004 | "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.3.0" 2005 | }, 2006 | "time": "2021-10-19T17:43:47+00:00" 2007 | }, 2008 | { 2009 | "name": "phpdocumentor/type-resolver", 2010 | "version": "1.6.0", 2011 | "source": { 2012 | "type": "git", 2013 | "url": "https://github.com/phpDocumentor/TypeResolver.git", 2014 | "reference": "93ebd0014cab80c4ea9f5e297ea48672f1b87706" 2015 | }, 2016 | "dist": { 2017 | "type": "zip", 2018 | "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/93ebd0014cab80c4ea9f5e297ea48672f1b87706", 2019 | "reference": "93ebd0014cab80c4ea9f5e297ea48672f1b87706", 2020 | "shasum": "" 2021 | }, 2022 | "require": { 2023 | "php": "^7.2 || ^8.0", 2024 | "phpdocumentor/reflection-common": "^2.0" 2025 | }, 2026 | "require-dev": { 2027 | "ext-tokenizer": "*", 2028 | "psalm/phar": "^4.8" 2029 | }, 2030 | "type": "library", 2031 | "extra": { 2032 | "branch-alias": { 2033 | "dev-1.x": "1.x-dev" 2034 | } 2035 | }, 2036 | "autoload": { 2037 | "psr-4": { 2038 | "phpDocumentor\\Reflection\\": "src" 2039 | } 2040 | }, 2041 | "notification-url": "https://packagist.org/downloads/", 2042 | "license": [ 2043 | "MIT" 2044 | ], 2045 | "authors": [ 2046 | { 2047 | "name": "Mike van Riel", 2048 | "email": "me@mikevanriel.com" 2049 | } 2050 | ], 2051 | "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", 2052 | "support": { 2053 | "issues": "https://github.com/phpDocumentor/TypeResolver/issues", 2054 | "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.6.0" 2055 | }, 2056 | "time": "2022-01-04T19:58:01+00:00" 2057 | }, 2058 | { 2059 | "name": "phpspec/prophecy", 2060 | "version": "v1.15.0", 2061 | "source": { 2062 | "type": "git", 2063 | "url": "https://github.com/phpspec/prophecy.git", 2064 | "reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13" 2065 | }, 2066 | "dist": { 2067 | "type": "zip", 2068 | "url": "https://api.github.com/repos/phpspec/prophecy/zipball/bbcd7380b0ebf3961ee21409db7b38bc31d69a13", 2069 | "reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13", 2070 | "shasum": "" 2071 | }, 2072 | "require": { 2073 | "doctrine/instantiator": "^1.2", 2074 | "php": "^7.2 || ~8.0, <8.2", 2075 | "phpdocumentor/reflection-docblock": "^5.2", 2076 | "sebastian/comparator": "^3.0 || ^4.0", 2077 | "sebastian/recursion-context": "^3.0 || ^4.0" 2078 | }, 2079 | "require-dev": { 2080 | "phpspec/phpspec": "^6.0 || ^7.0", 2081 | "phpunit/phpunit": "^8.0 || ^9.0" 2082 | }, 2083 | "type": "library", 2084 | "extra": { 2085 | "branch-alias": { 2086 | "dev-master": "1.x-dev" 2087 | } 2088 | }, 2089 | "autoload": { 2090 | "psr-4": { 2091 | "Prophecy\\": "src/Prophecy" 2092 | } 2093 | }, 2094 | "notification-url": "https://packagist.org/downloads/", 2095 | "license": [ 2096 | "MIT" 2097 | ], 2098 | "authors": [ 2099 | { 2100 | "name": "Konstantin Kudryashov", 2101 | "email": "ever.zet@gmail.com", 2102 | "homepage": "http://everzet.com" 2103 | }, 2104 | { 2105 | "name": "Marcello Duarte", 2106 | "email": "marcello.duarte@gmail.com" 2107 | } 2108 | ], 2109 | "description": "Highly opinionated mocking framework for PHP 5.3+", 2110 | "homepage": "https://github.com/phpspec/prophecy", 2111 | "keywords": [ 2112 | "Double", 2113 | "Dummy", 2114 | "fake", 2115 | "mock", 2116 | "spy", 2117 | "stub" 2118 | ], 2119 | "support": { 2120 | "issues": "https://github.com/phpspec/prophecy/issues", 2121 | "source": "https://github.com/phpspec/prophecy/tree/v1.15.0" 2122 | }, 2123 | "time": "2021-12-08T12:19:24+00:00" 2124 | }, 2125 | { 2126 | "name": "phpunit/php-code-coverage", 2127 | "version": "9.2.14", 2128 | "source": { 2129 | "type": "git", 2130 | "url": "https://github.com/sebastianbergmann/php-code-coverage.git", 2131 | "reference": "9f4d60b6afe5546421462b76cd4e633ebc364ab4" 2132 | }, 2133 | "dist": { 2134 | "type": "zip", 2135 | "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/9f4d60b6afe5546421462b76cd4e633ebc364ab4", 2136 | "reference": "9f4d60b6afe5546421462b76cd4e633ebc364ab4", 2137 | "shasum": "" 2138 | }, 2139 | "require": { 2140 | "ext-dom": "*", 2141 | "ext-libxml": "*", 2142 | "ext-xmlwriter": "*", 2143 | "nikic/php-parser": "^4.13.0", 2144 | "php": ">=7.3", 2145 | "phpunit/php-file-iterator": "^3.0.3", 2146 | "phpunit/php-text-template": "^2.0.2", 2147 | "sebastian/code-unit-reverse-lookup": "^2.0.2", 2148 | "sebastian/complexity": "^2.0", 2149 | "sebastian/environment": "^5.1.2", 2150 | "sebastian/lines-of-code": "^1.0.3", 2151 | "sebastian/version": "^3.0.1", 2152 | "theseer/tokenizer": "^1.2.0" 2153 | }, 2154 | "require-dev": { 2155 | "phpunit/phpunit": "^9.3" 2156 | }, 2157 | "suggest": { 2158 | "ext-pcov": "*", 2159 | "ext-xdebug": "*" 2160 | }, 2161 | "type": "library", 2162 | "extra": { 2163 | "branch-alias": { 2164 | "dev-master": "9.2-dev" 2165 | } 2166 | }, 2167 | "autoload": { 2168 | "classmap": [ 2169 | "src/" 2170 | ] 2171 | }, 2172 | "notification-url": "https://packagist.org/downloads/", 2173 | "license": [ 2174 | "BSD-3-Clause" 2175 | ], 2176 | "authors": [ 2177 | { 2178 | "name": "Sebastian Bergmann", 2179 | "email": "sebastian@phpunit.de", 2180 | "role": "lead" 2181 | } 2182 | ], 2183 | "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", 2184 | "homepage": "https://github.com/sebastianbergmann/php-code-coverage", 2185 | "keywords": [ 2186 | "coverage", 2187 | "testing", 2188 | "xunit" 2189 | ], 2190 | "support": { 2191 | "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", 2192 | "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.14" 2193 | }, 2194 | "funding": [ 2195 | { 2196 | "url": "https://github.com/sebastianbergmann", 2197 | "type": "github" 2198 | } 2199 | ], 2200 | "time": "2022-02-28T12:38:02+00:00" 2201 | }, 2202 | { 2203 | "name": "phpunit/php-file-iterator", 2204 | "version": "3.0.6", 2205 | "source": { 2206 | "type": "git", 2207 | "url": "https://github.com/sebastianbergmann/php-file-iterator.git", 2208 | "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf" 2209 | }, 2210 | "dist": { 2211 | "type": "zip", 2212 | "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", 2213 | "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", 2214 | "shasum": "" 2215 | }, 2216 | "require": { 2217 | "php": ">=7.3" 2218 | }, 2219 | "require-dev": { 2220 | "phpunit/phpunit": "^9.3" 2221 | }, 2222 | "type": "library", 2223 | "extra": { 2224 | "branch-alias": { 2225 | "dev-master": "3.0-dev" 2226 | } 2227 | }, 2228 | "autoload": { 2229 | "classmap": [ 2230 | "src/" 2231 | ] 2232 | }, 2233 | "notification-url": "https://packagist.org/downloads/", 2234 | "license": [ 2235 | "BSD-3-Clause" 2236 | ], 2237 | "authors": [ 2238 | { 2239 | "name": "Sebastian Bergmann", 2240 | "email": "sebastian@phpunit.de", 2241 | "role": "lead" 2242 | } 2243 | ], 2244 | "description": "FilterIterator implementation that filters files based on a list of suffixes.", 2245 | "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", 2246 | "keywords": [ 2247 | "filesystem", 2248 | "iterator" 2249 | ], 2250 | "support": { 2251 | "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", 2252 | "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.6" 2253 | }, 2254 | "funding": [ 2255 | { 2256 | "url": "https://github.com/sebastianbergmann", 2257 | "type": "github" 2258 | } 2259 | ], 2260 | "time": "2021-12-02T12:48:52+00:00" 2261 | }, 2262 | { 2263 | "name": "phpunit/php-invoker", 2264 | "version": "3.1.1", 2265 | "source": { 2266 | "type": "git", 2267 | "url": "https://github.com/sebastianbergmann/php-invoker.git", 2268 | "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67" 2269 | }, 2270 | "dist": { 2271 | "type": "zip", 2272 | "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/5a10147d0aaf65b58940a0b72f71c9ac0423cc67", 2273 | "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67", 2274 | "shasum": "" 2275 | }, 2276 | "require": { 2277 | "php": ">=7.3" 2278 | }, 2279 | "require-dev": { 2280 | "ext-pcntl": "*", 2281 | "phpunit/phpunit": "^9.3" 2282 | }, 2283 | "suggest": { 2284 | "ext-pcntl": "*" 2285 | }, 2286 | "type": "library", 2287 | "extra": { 2288 | "branch-alias": { 2289 | "dev-master": "3.1-dev" 2290 | } 2291 | }, 2292 | "autoload": { 2293 | "classmap": [ 2294 | "src/" 2295 | ] 2296 | }, 2297 | "notification-url": "https://packagist.org/downloads/", 2298 | "license": [ 2299 | "BSD-3-Clause" 2300 | ], 2301 | "authors": [ 2302 | { 2303 | "name": "Sebastian Bergmann", 2304 | "email": "sebastian@phpunit.de", 2305 | "role": "lead" 2306 | } 2307 | ], 2308 | "description": "Invoke callables with a timeout", 2309 | "homepage": "https://github.com/sebastianbergmann/php-invoker/", 2310 | "keywords": [ 2311 | "process" 2312 | ], 2313 | "support": { 2314 | "issues": "https://github.com/sebastianbergmann/php-invoker/issues", 2315 | "source": "https://github.com/sebastianbergmann/php-invoker/tree/3.1.1" 2316 | }, 2317 | "funding": [ 2318 | { 2319 | "url": "https://github.com/sebastianbergmann", 2320 | "type": "github" 2321 | } 2322 | ], 2323 | "time": "2020-09-28T05:58:55+00:00" 2324 | }, 2325 | { 2326 | "name": "phpunit/php-text-template", 2327 | "version": "2.0.4", 2328 | "source": { 2329 | "type": "git", 2330 | "url": "https://github.com/sebastianbergmann/php-text-template.git", 2331 | "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28" 2332 | }, 2333 | "dist": { 2334 | "type": "zip", 2335 | "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", 2336 | "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", 2337 | "shasum": "" 2338 | }, 2339 | "require": { 2340 | "php": ">=7.3" 2341 | }, 2342 | "require-dev": { 2343 | "phpunit/phpunit": "^9.3" 2344 | }, 2345 | "type": "library", 2346 | "extra": { 2347 | "branch-alias": { 2348 | "dev-master": "2.0-dev" 2349 | } 2350 | }, 2351 | "autoload": { 2352 | "classmap": [ 2353 | "src/" 2354 | ] 2355 | }, 2356 | "notification-url": "https://packagist.org/downloads/", 2357 | "license": [ 2358 | "BSD-3-Clause" 2359 | ], 2360 | "authors": [ 2361 | { 2362 | "name": "Sebastian Bergmann", 2363 | "email": "sebastian@phpunit.de", 2364 | "role": "lead" 2365 | } 2366 | ], 2367 | "description": "Simple template engine.", 2368 | "homepage": "https://github.com/sebastianbergmann/php-text-template/", 2369 | "keywords": [ 2370 | "template" 2371 | ], 2372 | "support": { 2373 | "issues": "https://github.com/sebastianbergmann/php-text-template/issues", 2374 | "source": "https://github.com/sebastianbergmann/php-text-template/tree/2.0.4" 2375 | }, 2376 | "funding": [ 2377 | { 2378 | "url": "https://github.com/sebastianbergmann", 2379 | "type": "github" 2380 | } 2381 | ], 2382 | "time": "2020-10-26T05:33:50+00:00" 2383 | }, 2384 | { 2385 | "name": "phpunit/php-timer", 2386 | "version": "5.0.3", 2387 | "source": { 2388 | "type": "git", 2389 | "url": "https://github.com/sebastianbergmann/php-timer.git", 2390 | "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2" 2391 | }, 2392 | "dist": { 2393 | "type": "zip", 2394 | "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", 2395 | "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", 2396 | "shasum": "" 2397 | }, 2398 | "require": { 2399 | "php": ">=7.3" 2400 | }, 2401 | "require-dev": { 2402 | "phpunit/phpunit": "^9.3" 2403 | }, 2404 | "type": "library", 2405 | "extra": { 2406 | "branch-alias": { 2407 | "dev-master": "5.0-dev" 2408 | } 2409 | }, 2410 | "autoload": { 2411 | "classmap": [ 2412 | "src/" 2413 | ] 2414 | }, 2415 | "notification-url": "https://packagist.org/downloads/", 2416 | "license": [ 2417 | "BSD-3-Clause" 2418 | ], 2419 | "authors": [ 2420 | { 2421 | "name": "Sebastian Bergmann", 2422 | "email": "sebastian@phpunit.de", 2423 | "role": "lead" 2424 | } 2425 | ], 2426 | "description": "Utility class for timing", 2427 | "homepage": "https://github.com/sebastianbergmann/php-timer/", 2428 | "keywords": [ 2429 | "timer" 2430 | ], 2431 | "support": { 2432 | "issues": "https://github.com/sebastianbergmann/php-timer/issues", 2433 | "source": "https://github.com/sebastianbergmann/php-timer/tree/5.0.3" 2434 | }, 2435 | "funding": [ 2436 | { 2437 | "url": "https://github.com/sebastianbergmann", 2438 | "type": "github" 2439 | } 2440 | ], 2441 | "time": "2020-10-26T13:16:10+00:00" 2442 | }, 2443 | { 2444 | "name": "phpunit/phpunit", 2445 | "version": "9.5.16", 2446 | "source": { 2447 | "type": "git", 2448 | "url": "https://github.com/sebastianbergmann/phpunit.git", 2449 | "reference": "5ff8c545a50226c569310a35f4fa89d79f1ddfdc" 2450 | }, 2451 | "dist": { 2452 | "type": "zip", 2453 | "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/5ff8c545a50226c569310a35f4fa89d79f1ddfdc", 2454 | "reference": "5ff8c545a50226c569310a35f4fa89d79f1ddfdc", 2455 | "shasum": "" 2456 | }, 2457 | "require": { 2458 | "doctrine/instantiator": "^1.3.1", 2459 | "ext-dom": "*", 2460 | "ext-json": "*", 2461 | "ext-libxml": "*", 2462 | "ext-mbstring": "*", 2463 | "ext-xml": "*", 2464 | "ext-xmlwriter": "*", 2465 | "myclabs/deep-copy": "^1.10.1", 2466 | "phar-io/manifest": "^2.0.3", 2467 | "phar-io/version": "^3.0.2", 2468 | "php": ">=7.3", 2469 | "phpspec/prophecy": "^1.12.1", 2470 | "phpunit/php-code-coverage": "^9.2.13", 2471 | "phpunit/php-file-iterator": "^3.0.5", 2472 | "phpunit/php-invoker": "^3.1.1", 2473 | "phpunit/php-text-template": "^2.0.3", 2474 | "phpunit/php-timer": "^5.0.2", 2475 | "sebastian/cli-parser": "^1.0.1", 2476 | "sebastian/code-unit": "^1.0.6", 2477 | "sebastian/comparator": "^4.0.5", 2478 | "sebastian/diff": "^4.0.3", 2479 | "sebastian/environment": "^5.1.3", 2480 | "sebastian/exporter": "^4.0.3", 2481 | "sebastian/global-state": "^5.0.1", 2482 | "sebastian/object-enumerator": "^4.0.3", 2483 | "sebastian/resource-operations": "^3.0.3", 2484 | "sebastian/type": "^2.3.4", 2485 | "sebastian/version": "^3.0.2" 2486 | }, 2487 | "require-dev": { 2488 | "ext-pdo": "*", 2489 | "phpspec/prophecy-phpunit": "^2.0.1" 2490 | }, 2491 | "suggest": { 2492 | "ext-soap": "*", 2493 | "ext-xdebug": "*" 2494 | }, 2495 | "bin": [ 2496 | "phpunit" 2497 | ], 2498 | "type": "library", 2499 | "extra": { 2500 | "branch-alias": { 2501 | "dev-master": "9.5-dev" 2502 | } 2503 | }, 2504 | "autoload": { 2505 | "files": [ 2506 | "src/Framework/Assert/Functions.php" 2507 | ], 2508 | "classmap": [ 2509 | "src/" 2510 | ] 2511 | }, 2512 | "notification-url": "https://packagist.org/downloads/", 2513 | "license": [ 2514 | "BSD-3-Clause" 2515 | ], 2516 | "authors": [ 2517 | { 2518 | "name": "Sebastian Bergmann", 2519 | "email": "sebastian@phpunit.de", 2520 | "role": "lead" 2521 | } 2522 | ], 2523 | "description": "The PHP Unit Testing framework.", 2524 | "homepage": "https://phpunit.de/", 2525 | "keywords": [ 2526 | "phpunit", 2527 | "testing", 2528 | "xunit" 2529 | ], 2530 | "support": { 2531 | "issues": "https://github.com/sebastianbergmann/phpunit/issues", 2532 | "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.16" 2533 | }, 2534 | "funding": [ 2535 | { 2536 | "url": "https://phpunit.de/sponsors.html", 2537 | "type": "custom" 2538 | }, 2539 | { 2540 | "url": "https://github.com/sebastianbergmann", 2541 | "type": "github" 2542 | } 2543 | ], 2544 | "time": "2022-02-23T17:10:58+00:00" 2545 | }, 2546 | { 2547 | "name": "psr/cache", 2548 | "version": "3.0.0", 2549 | "source": { 2550 | "type": "git", 2551 | "url": "https://github.com/php-fig/cache.git", 2552 | "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf" 2553 | }, 2554 | "dist": { 2555 | "type": "zip", 2556 | "url": "https://api.github.com/repos/php-fig/cache/zipball/aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", 2557 | "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", 2558 | "shasum": "" 2559 | }, 2560 | "require": { 2561 | "php": ">=8.0.0" 2562 | }, 2563 | "type": "library", 2564 | "extra": { 2565 | "branch-alias": { 2566 | "dev-master": "1.0.x-dev" 2567 | } 2568 | }, 2569 | "autoload": { 2570 | "psr-4": { 2571 | "Psr\\Cache\\": "src/" 2572 | } 2573 | }, 2574 | "notification-url": "https://packagist.org/downloads/", 2575 | "license": [ 2576 | "MIT" 2577 | ], 2578 | "authors": [ 2579 | { 2580 | "name": "PHP-FIG", 2581 | "homepage": "https://www.php-fig.org/" 2582 | } 2583 | ], 2584 | "description": "Common interface for caching libraries", 2585 | "keywords": [ 2586 | "cache", 2587 | "psr", 2588 | "psr-6" 2589 | ], 2590 | "support": { 2591 | "source": "https://github.com/php-fig/cache/tree/3.0.0" 2592 | }, 2593 | "time": "2021-02-03T23:26:27+00:00" 2594 | }, 2595 | { 2596 | "name": "sebastian/cli-parser", 2597 | "version": "1.0.1", 2598 | "source": { 2599 | "type": "git", 2600 | "url": "https://github.com/sebastianbergmann/cli-parser.git", 2601 | "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2" 2602 | }, 2603 | "dist": { 2604 | "type": "zip", 2605 | "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/442e7c7e687e42adc03470c7b668bc4b2402c0b2", 2606 | "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2", 2607 | "shasum": "" 2608 | }, 2609 | "require": { 2610 | "php": ">=7.3" 2611 | }, 2612 | "require-dev": { 2613 | "phpunit/phpunit": "^9.3" 2614 | }, 2615 | "type": "library", 2616 | "extra": { 2617 | "branch-alias": { 2618 | "dev-master": "1.0-dev" 2619 | } 2620 | }, 2621 | "autoload": { 2622 | "classmap": [ 2623 | "src/" 2624 | ] 2625 | }, 2626 | "notification-url": "https://packagist.org/downloads/", 2627 | "license": [ 2628 | "BSD-3-Clause" 2629 | ], 2630 | "authors": [ 2631 | { 2632 | "name": "Sebastian Bergmann", 2633 | "email": "sebastian@phpunit.de", 2634 | "role": "lead" 2635 | } 2636 | ], 2637 | "description": "Library for parsing CLI options", 2638 | "homepage": "https://github.com/sebastianbergmann/cli-parser", 2639 | "support": { 2640 | "issues": "https://github.com/sebastianbergmann/cli-parser/issues", 2641 | "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.1" 2642 | }, 2643 | "funding": [ 2644 | { 2645 | "url": "https://github.com/sebastianbergmann", 2646 | "type": "github" 2647 | } 2648 | ], 2649 | "time": "2020-09-28T06:08:49+00:00" 2650 | }, 2651 | { 2652 | "name": "sebastian/code-unit", 2653 | "version": "1.0.8", 2654 | "source": { 2655 | "type": "git", 2656 | "url": "https://github.com/sebastianbergmann/code-unit.git", 2657 | "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120" 2658 | }, 2659 | "dist": { 2660 | "type": "zip", 2661 | "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/1fc9f64c0927627ef78ba436c9b17d967e68e120", 2662 | "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120", 2663 | "shasum": "" 2664 | }, 2665 | "require": { 2666 | "php": ">=7.3" 2667 | }, 2668 | "require-dev": { 2669 | "phpunit/phpunit": "^9.3" 2670 | }, 2671 | "type": "library", 2672 | "extra": { 2673 | "branch-alias": { 2674 | "dev-master": "1.0-dev" 2675 | } 2676 | }, 2677 | "autoload": { 2678 | "classmap": [ 2679 | "src/" 2680 | ] 2681 | }, 2682 | "notification-url": "https://packagist.org/downloads/", 2683 | "license": [ 2684 | "BSD-3-Clause" 2685 | ], 2686 | "authors": [ 2687 | { 2688 | "name": "Sebastian Bergmann", 2689 | "email": "sebastian@phpunit.de", 2690 | "role": "lead" 2691 | } 2692 | ], 2693 | "description": "Collection of value objects that represent the PHP code units", 2694 | "homepage": "https://github.com/sebastianbergmann/code-unit", 2695 | "support": { 2696 | "issues": "https://github.com/sebastianbergmann/code-unit/issues", 2697 | "source": "https://github.com/sebastianbergmann/code-unit/tree/1.0.8" 2698 | }, 2699 | "funding": [ 2700 | { 2701 | "url": "https://github.com/sebastianbergmann", 2702 | "type": "github" 2703 | } 2704 | ], 2705 | "time": "2020-10-26T13:08:54+00:00" 2706 | }, 2707 | { 2708 | "name": "sebastian/code-unit-reverse-lookup", 2709 | "version": "2.0.3", 2710 | "source": { 2711 | "type": "git", 2712 | "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", 2713 | "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5" 2714 | }, 2715 | "dist": { 2716 | "type": "zip", 2717 | "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", 2718 | "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", 2719 | "shasum": "" 2720 | }, 2721 | "require": { 2722 | "php": ">=7.3" 2723 | }, 2724 | "require-dev": { 2725 | "phpunit/phpunit": "^9.3" 2726 | }, 2727 | "type": "library", 2728 | "extra": { 2729 | "branch-alias": { 2730 | "dev-master": "2.0-dev" 2731 | } 2732 | }, 2733 | "autoload": { 2734 | "classmap": [ 2735 | "src/" 2736 | ] 2737 | }, 2738 | "notification-url": "https://packagist.org/downloads/", 2739 | "license": [ 2740 | "BSD-3-Clause" 2741 | ], 2742 | "authors": [ 2743 | { 2744 | "name": "Sebastian Bergmann", 2745 | "email": "sebastian@phpunit.de" 2746 | } 2747 | ], 2748 | "description": "Looks up which function or method a line of code belongs to", 2749 | "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", 2750 | "support": { 2751 | "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", 2752 | "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/2.0.3" 2753 | }, 2754 | "funding": [ 2755 | { 2756 | "url": "https://github.com/sebastianbergmann", 2757 | "type": "github" 2758 | } 2759 | ], 2760 | "time": "2020-09-28T05:30:19+00:00" 2761 | }, 2762 | { 2763 | "name": "sebastian/comparator", 2764 | "version": "4.0.6", 2765 | "source": { 2766 | "type": "git", 2767 | "url": "https://github.com/sebastianbergmann/comparator.git", 2768 | "reference": "55f4261989e546dc112258c7a75935a81a7ce382" 2769 | }, 2770 | "dist": { 2771 | "type": "zip", 2772 | "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/55f4261989e546dc112258c7a75935a81a7ce382", 2773 | "reference": "55f4261989e546dc112258c7a75935a81a7ce382", 2774 | "shasum": "" 2775 | }, 2776 | "require": { 2777 | "php": ">=7.3", 2778 | "sebastian/diff": "^4.0", 2779 | "sebastian/exporter": "^4.0" 2780 | }, 2781 | "require-dev": { 2782 | "phpunit/phpunit": "^9.3" 2783 | }, 2784 | "type": "library", 2785 | "extra": { 2786 | "branch-alias": { 2787 | "dev-master": "4.0-dev" 2788 | } 2789 | }, 2790 | "autoload": { 2791 | "classmap": [ 2792 | "src/" 2793 | ] 2794 | }, 2795 | "notification-url": "https://packagist.org/downloads/", 2796 | "license": [ 2797 | "BSD-3-Clause" 2798 | ], 2799 | "authors": [ 2800 | { 2801 | "name": "Sebastian Bergmann", 2802 | "email": "sebastian@phpunit.de" 2803 | }, 2804 | { 2805 | "name": "Jeff Welch", 2806 | "email": "whatthejeff@gmail.com" 2807 | }, 2808 | { 2809 | "name": "Volker Dusch", 2810 | "email": "github@wallbash.com" 2811 | }, 2812 | { 2813 | "name": "Bernhard Schussek", 2814 | "email": "bschussek@2bepublished.at" 2815 | } 2816 | ], 2817 | "description": "Provides the functionality to compare PHP values for equality", 2818 | "homepage": "https://github.com/sebastianbergmann/comparator", 2819 | "keywords": [ 2820 | "comparator", 2821 | "compare", 2822 | "equality" 2823 | ], 2824 | "support": { 2825 | "issues": "https://github.com/sebastianbergmann/comparator/issues", 2826 | "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.6" 2827 | }, 2828 | "funding": [ 2829 | { 2830 | "url": "https://github.com/sebastianbergmann", 2831 | "type": "github" 2832 | } 2833 | ], 2834 | "time": "2020-10-26T15:49:45+00:00" 2835 | }, 2836 | { 2837 | "name": "sebastian/complexity", 2838 | "version": "2.0.2", 2839 | "source": { 2840 | "type": "git", 2841 | "url": "https://github.com/sebastianbergmann/complexity.git", 2842 | "reference": "739b35e53379900cc9ac327b2147867b8b6efd88" 2843 | }, 2844 | "dist": { 2845 | "type": "zip", 2846 | "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/739b35e53379900cc9ac327b2147867b8b6efd88", 2847 | "reference": "739b35e53379900cc9ac327b2147867b8b6efd88", 2848 | "shasum": "" 2849 | }, 2850 | "require": { 2851 | "nikic/php-parser": "^4.7", 2852 | "php": ">=7.3" 2853 | }, 2854 | "require-dev": { 2855 | "phpunit/phpunit": "^9.3" 2856 | }, 2857 | "type": "library", 2858 | "extra": { 2859 | "branch-alias": { 2860 | "dev-master": "2.0-dev" 2861 | } 2862 | }, 2863 | "autoload": { 2864 | "classmap": [ 2865 | "src/" 2866 | ] 2867 | }, 2868 | "notification-url": "https://packagist.org/downloads/", 2869 | "license": [ 2870 | "BSD-3-Clause" 2871 | ], 2872 | "authors": [ 2873 | { 2874 | "name": "Sebastian Bergmann", 2875 | "email": "sebastian@phpunit.de", 2876 | "role": "lead" 2877 | } 2878 | ], 2879 | "description": "Library for calculating the complexity of PHP code units", 2880 | "homepage": "https://github.com/sebastianbergmann/complexity", 2881 | "support": { 2882 | "issues": "https://github.com/sebastianbergmann/complexity/issues", 2883 | "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.2" 2884 | }, 2885 | "funding": [ 2886 | { 2887 | "url": "https://github.com/sebastianbergmann", 2888 | "type": "github" 2889 | } 2890 | ], 2891 | "time": "2020-10-26T15:52:27+00:00" 2892 | }, 2893 | { 2894 | "name": "sebastian/diff", 2895 | "version": "4.0.4", 2896 | "source": { 2897 | "type": "git", 2898 | "url": "https://github.com/sebastianbergmann/diff.git", 2899 | "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d" 2900 | }, 2901 | "dist": { 2902 | "type": "zip", 2903 | "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/3461e3fccc7cfdfc2720be910d3bd73c69be590d", 2904 | "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d", 2905 | "shasum": "" 2906 | }, 2907 | "require": { 2908 | "php": ">=7.3" 2909 | }, 2910 | "require-dev": { 2911 | "phpunit/phpunit": "^9.3", 2912 | "symfony/process": "^4.2 || ^5" 2913 | }, 2914 | "type": "library", 2915 | "extra": { 2916 | "branch-alias": { 2917 | "dev-master": "4.0-dev" 2918 | } 2919 | }, 2920 | "autoload": { 2921 | "classmap": [ 2922 | "src/" 2923 | ] 2924 | }, 2925 | "notification-url": "https://packagist.org/downloads/", 2926 | "license": [ 2927 | "BSD-3-Clause" 2928 | ], 2929 | "authors": [ 2930 | { 2931 | "name": "Sebastian Bergmann", 2932 | "email": "sebastian@phpunit.de" 2933 | }, 2934 | { 2935 | "name": "Kore Nordmann", 2936 | "email": "mail@kore-nordmann.de" 2937 | } 2938 | ], 2939 | "description": "Diff implementation", 2940 | "homepage": "https://github.com/sebastianbergmann/diff", 2941 | "keywords": [ 2942 | "diff", 2943 | "udiff", 2944 | "unidiff", 2945 | "unified diff" 2946 | ], 2947 | "support": { 2948 | "issues": "https://github.com/sebastianbergmann/diff/issues", 2949 | "source": "https://github.com/sebastianbergmann/diff/tree/4.0.4" 2950 | }, 2951 | "funding": [ 2952 | { 2953 | "url": "https://github.com/sebastianbergmann", 2954 | "type": "github" 2955 | } 2956 | ], 2957 | "time": "2020-10-26T13:10:38+00:00" 2958 | }, 2959 | { 2960 | "name": "sebastian/environment", 2961 | "version": "5.1.3", 2962 | "source": { 2963 | "type": "git", 2964 | "url": "https://github.com/sebastianbergmann/environment.git", 2965 | "reference": "388b6ced16caa751030f6a69e588299fa09200ac" 2966 | }, 2967 | "dist": { 2968 | "type": "zip", 2969 | "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/388b6ced16caa751030f6a69e588299fa09200ac", 2970 | "reference": "388b6ced16caa751030f6a69e588299fa09200ac", 2971 | "shasum": "" 2972 | }, 2973 | "require": { 2974 | "php": ">=7.3" 2975 | }, 2976 | "require-dev": { 2977 | "phpunit/phpunit": "^9.3" 2978 | }, 2979 | "suggest": { 2980 | "ext-posix": "*" 2981 | }, 2982 | "type": "library", 2983 | "extra": { 2984 | "branch-alias": { 2985 | "dev-master": "5.1-dev" 2986 | } 2987 | }, 2988 | "autoload": { 2989 | "classmap": [ 2990 | "src/" 2991 | ] 2992 | }, 2993 | "notification-url": "https://packagist.org/downloads/", 2994 | "license": [ 2995 | "BSD-3-Clause" 2996 | ], 2997 | "authors": [ 2998 | { 2999 | "name": "Sebastian Bergmann", 3000 | "email": "sebastian@phpunit.de" 3001 | } 3002 | ], 3003 | "description": "Provides functionality to handle HHVM/PHP environments", 3004 | "homepage": "http://www.github.com/sebastianbergmann/environment", 3005 | "keywords": [ 3006 | "Xdebug", 3007 | "environment", 3008 | "hhvm" 3009 | ], 3010 | "support": { 3011 | "issues": "https://github.com/sebastianbergmann/environment/issues", 3012 | "source": "https://github.com/sebastianbergmann/environment/tree/5.1.3" 3013 | }, 3014 | "funding": [ 3015 | { 3016 | "url": "https://github.com/sebastianbergmann", 3017 | "type": "github" 3018 | } 3019 | ], 3020 | "time": "2020-09-28T05:52:38+00:00" 3021 | }, 3022 | { 3023 | "name": "sebastian/exporter", 3024 | "version": "4.0.4", 3025 | "source": { 3026 | "type": "git", 3027 | "url": "https://github.com/sebastianbergmann/exporter.git", 3028 | "reference": "65e8b7db476c5dd267e65eea9cab77584d3cfff9" 3029 | }, 3030 | "dist": { 3031 | "type": "zip", 3032 | "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/65e8b7db476c5dd267e65eea9cab77584d3cfff9", 3033 | "reference": "65e8b7db476c5dd267e65eea9cab77584d3cfff9", 3034 | "shasum": "" 3035 | }, 3036 | "require": { 3037 | "php": ">=7.3", 3038 | "sebastian/recursion-context": "^4.0" 3039 | }, 3040 | "require-dev": { 3041 | "ext-mbstring": "*", 3042 | "phpunit/phpunit": "^9.3" 3043 | }, 3044 | "type": "library", 3045 | "extra": { 3046 | "branch-alias": { 3047 | "dev-master": "4.0-dev" 3048 | } 3049 | }, 3050 | "autoload": { 3051 | "classmap": [ 3052 | "src/" 3053 | ] 3054 | }, 3055 | "notification-url": "https://packagist.org/downloads/", 3056 | "license": [ 3057 | "BSD-3-Clause" 3058 | ], 3059 | "authors": [ 3060 | { 3061 | "name": "Sebastian Bergmann", 3062 | "email": "sebastian@phpunit.de" 3063 | }, 3064 | { 3065 | "name": "Jeff Welch", 3066 | "email": "whatthejeff@gmail.com" 3067 | }, 3068 | { 3069 | "name": "Volker Dusch", 3070 | "email": "github@wallbash.com" 3071 | }, 3072 | { 3073 | "name": "Adam Harvey", 3074 | "email": "aharvey@php.net" 3075 | }, 3076 | { 3077 | "name": "Bernhard Schussek", 3078 | "email": "bschussek@gmail.com" 3079 | } 3080 | ], 3081 | "description": "Provides the functionality to export PHP variables for visualization", 3082 | "homepage": "https://www.github.com/sebastianbergmann/exporter", 3083 | "keywords": [ 3084 | "export", 3085 | "exporter" 3086 | ], 3087 | "support": { 3088 | "issues": "https://github.com/sebastianbergmann/exporter/issues", 3089 | "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.4" 3090 | }, 3091 | "funding": [ 3092 | { 3093 | "url": "https://github.com/sebastianbergmann", 3094 | "type": "github" 3095 | } 3096 | ], 3097 | "time": "2021-11-11T14:18:36+00:00" 3098 | }, 3099 | { 3100 | "name": "sebastian/global-state", 3101 | "version": "5.0.5", 3102 | "source": { 3103 | "type": "git", 3104 | "url": "https://github.com/sebastianbergmann/global-state.git", 3105 | "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2" 3106 | }, 3107 | "dist": { 3108 | "type": "zip", 3109 | "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/0ca8db5a5fc9c8646244e629625ac486fa286bf2", 3110 | "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2", 3111 | "shasum": "" 3112 | }, 3113 | "require": { 3114 | "php": ">=7.3", 3115 | "sebastian/object-reflector": "^2.0", 3116 | "sebastian/recursion-context": "^4.0" 3117 | }, 3118 | "require-dev": { 3119 | "ext-dom": "*", 3120 | "phpunit/phpunit": "^9.3" 3121 | }, 3122 | "suggest": { 3123 | "ext-uopz": "*" 3124 | }, 3125 | "type": "library", 3126 | "extra": { 3127 | "branch-alias": { 3128 | "dev-master": "5.0-dev" 3129 | } 3130 | }, 3131 | "autoload": { 3132 | "classmap": [ 3133 | "src/" 3134 | ] 3135 | }, 3136 | "notification-url": "https://packagist.org/downloads/", 3137 | "license": [ 3138 | "BSD-3-Clause" 3139 | ], 3140 | "authors": [ 3141 | { 3142 | "name": "Sebastian Bergmann", 3143 | "email": "sebastian@phpunit.de" 3144 | } 3145 | ], 3146 | "description": "Snapshotting of global state", 3147 | "homepage": "http://www.github.com/sebastianbergmann/global-state", 3148 | "keywords": [ 3149 | "global state" 3150 | ], 3151 | "support": { 3152 | "issues": "https://github.com/sebastianbergmann/global-state/issues", 3153 | "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.5" 3154 | }, 3155 | "funding": [ 3156 | { 3157 | "url": "https://github.com/sebastianbergmann", 3158 | "type": "github" 3159 | } 3160 | ], 3161 | "time": "2022-02-14T08:28:10+00:00" 3162 | }, 3163 | { 3164 | "name": "sebastian/lines-of-code", 3165 | "version": "1.0.3", 3166 | "source": { 3167 | "type": "git", 3168 | "url": "https://github.com/sebastianbergmann/lines-of-code.git", 3169 | "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc" 3170 | }, 3171 | "dist": { 3172 | "type": "zip", 3173 | "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/c1c2e997aa3146983ed888ad08b15470a2e22ecc", 3174 | "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc", 3175 | "shasum": "" 3176 | }, 3177 | "require": { 3178 | "nikic/php-parser": "^4.6", 3179 | "php": ">=7.3" 3180 | }, 3181 | "require-dev": { 3182 | "phpunit/phpunit": "^9.3" 3183 | }, 3184 | "type": "library", 3185 | "extra": { 3186 | "branch-alias": { 3187 | "dev-master": "1.0-dev" 3188 | } 3189 | }, 3190 | "autoload": { 3191 | "classmap": [ 3192 | "src/" 3193 | ] 3194 | }, 3195 | "notification-url": "https://packagist.org/downloads/", 3196 | "license": [ 3197 | "BSD-3-Clause" 3198 | ], 3199 | "authors": [ 3200 | { 3201 | "name": "Sebastian Bergmann", 3202 | "email": "sebastian@phpunit.de", 3203 | "role": "lead" 3204 | } 3205 | ], 3206 | "description": "Library for counting the lines of code in PHP source code", 3207 | "homepage": "https://github.com/sebastianbergmann/lines-of-code", 3208 | "support": { 3209 | "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", 3210 | "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.3" 3211 | }, 3212 | "funding": [ 3213 | { 3214 | "url": "https://github.com/sebastianbergmann", 3215 | "type": "github" 3216 | } 3217 | ], 3218 | "time": "2020-11-28T06:42:11+00:00" 3219 | }, 3220 | { 3221 | "name": "sebastian/object-enumerator", 3222 | "version": "4.0.4", 3223 | "source": { 3224 | "type": "git", 3225 | "url": "https://github.com/sebastianbergmann/object-enumerator.git", 3226 | "reference": "5c9eeac41b290a3712d88851518825ad78f45c71" 3227 | }, 3228 | "dist": { 3229 | "type": "zip", 3230 | "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/5c9eeac41b290a3712d88851518825ad78f45c71", 3231 | "reference": "5c9eeac41b290a3712d88851518825ad78f45c71", 3232 | "shasum": "" 3233 | }, 3234 | "require": { 3235 | "php": ">=7.3", 3236 | "sebastian/object-reflector": "^2.0", 3237 | "sebastian/recursion-context": "^4.0" 3238 | }, 3239 | "require-dev": { 3240 | "phpunit/phpunit": "^9.3" 3241 | }, 3242 | "type": "library", 3243 | "extra": { 3244 | "branch-alias": { 3245 | "dev-master": "4.0-dev" 3246 | } 3247 | }, 3248 | "autoload": { 3249 | "classmap": [ 3250 | "src/" 3251 | ] 3252 | }, 3253 | "notification-url": "https://packagist.org/downloads/", 3254 | "license": [ 3255 | "BSD-3-Clause" 3256 | ], 3257 | "authors": [ 3258 | { 3259 | "name": "Sebastian Bergmann", 3260 | "email": "sebastian@phpunit.de" 3261 | } 3262 | ], 3263 | "description": "Traverses array structures and object graphs to enumerate all referenced objects", 3264 | "homepage": "https://github.com/sebastianbergmann/object-enumerator/", 3265 | "support": { 3266 | "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", 3267 | "source": "https://github.com/sebastianbergmann/object-enumerator/tree/4.0.4" 3268 | }, 3269 | "funding": [ 3270 | { 3271 | "url": "https://github.com/sebastianbergmann", 3272 | "type": "github" 3273 | } 3274 | ], 3275 | "time": "2020-10-26T13:12:34+00:00" 3276 | }, 3277 | { 3278 | "name": "sebastian/object-reflector", 3279 | "version": "2.0.4", 3280 | "source": { 3281 | "type": "git", 3282 | "url": "https://github.com/sebastianbergmann/object-reflector.git", 3283 | "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7" 3284 | }, 3285 | "dist": { 3286 | "type": "zip", 3287 | "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", 3288 | "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", 3289 | "shasum": "" 3290 | }, 3291 | "require": { 3292 | "php": ">=7.3" 3293 | }, 3294 | "require-dev": { 3295 | "phpunit/phpunit": "^9.3" 3296 | }, 3297 | "type": "library", 3298 | "extra": { 3299 | "branch-alias": { 3300 | "dev-master": "2.0-dev" 3301 | } 3302 | }, 3303 | "autoload": { 3304 | "classmap": [ 3305 | "src/" 3306 | ] 3307 | }, 3308 | "notification-url": "https://packagist.org/downloads/", 3309 | "license": [ 3310 | "BSD-3-Clause" 3311 | ], 3312 | "authors": [ 3313 | { 3314 | "name": "Sebastian Bergmann", 3315 | "email": "sebastian@phpunit.de" 3316 | } 3317 | ], 3318 | "description": "Allows reflection of object attributes, including inherited and non-public ones", 3319 | "homepage": "https://github.com/sebastianbergmann/object-reflector/", 3320 | "support": { 3321 | "issues": "https://github.com/sebastianbergmann/object-reflector/issues", 3322 | "source": "https://github.com/sebastianbergmann/object-reflector/tree/2.0.4" 3323 | }, 3324 | "funding": [ 3325 | { 3326 | "url": "https://github.com/sebastianbergmann", 3327 | "type": "github" 3328 | } 3329 | ], 3330 | "time": "2020-10-26T13:14:26+00:00" 3331 | }, 3332 | { 3333 | "name": "sebastian/recursion-context", 3334 | "version": "4.0.4", 3335 | "source": { 3336 | "type": "git", 3337 | "url": "https://github.com/sebastianbergmann/recursion-context.git", 3338 | "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172" 3339 | }, 3340 | "dist": { 3341 | "type": "zip", 3342 | "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/cd9d8cf3c5804de4341c283ed787f099f5506172", 3343 | "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172", 3344 | "shasum": "" 3345 | }, 3346 | "require": { 3347 | "php": ">=7.3" 3348 | }, 3349 | "require-dev": { 3350 | "phpunit/phpunit": "^9.3" 3351 | }, 3352 | "type": "library", 3353 | "extra": { 3354 | "branch-alias": { 3355 | "dev-master": "4.0-dev" 3356 | } 3357 | }, 3358 | "autoload": { 3359 | "classmap": [ 3360 | "src/" 3361 | ] 3362 | }, 3363 | "notification-url": "https://packagist.org/downloads/", 3364 | "license": [ 3365 | "BSD-3-Clause" 3366 | ], 3367 | "authors": [ 3368 | { 3369 | "name": "Sebastian Bergmann", 3370 | "email": "sebastian@phpunit.de" 3371 | }, 3372 | { 3373 | "name": "Jeff Welch", 3374 | "email": "whatthejeff@gmail.com" 3375 | }, 3376 | { 3377 | "name": "Adam Harvey", 3378 | "email": "aharvey@php.net" 3379 | } 3380 | ], 3381 | "description": "Provides functionality to recursively process PHP variables", 3382 | "homepage": "http://www.github.com/sebastianbergmann/recursion-context", 3383 | "support": { 3384 | "issues": "https://github.com/sebastianbergmann/recursion-context/issues", 3385 | "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.4" 3386 | }, 3387 | "funding": [ 3388 | { 3389 | "url": "https://github.com/sebastianbergmann", 3390 | "type": "github" 3391 | } 3392 | ], 3393 | "time": "2020-10-26T13:17:30+00:00" 3394 | }, 3395 | { 3396 | "name": "sebastian/resource-operations", 3397 | "version": "3.0.3", 3398 | "source": { 3399 | "type": "git", 3400 | "url": "https://github.com/sebastianbergmann/resource-operations.git", 3401 | "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8" 3402 | }, 3403 | "dist": { 3404 | "type": "zip", 3405 | "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", 3406 | "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", 3407 | "shasum": "" 3408 | }, 3409 | "require": { 3410 | "php": ">=7.3" 3411 | }, 3412 | "require-dev": { 3413 | "phpunit/phpunit": "^9.0" 3414 | }, 3415 | "type": "library", 3416 | "extra": { 3417 | "branch-alias": { 3418 | "dev-master": "3.0-dev" 3419 | } 3420 | }, 3421 | "autoload": { 3422 | "classmap": [ 3423 | "src/" 3424 | ] 3425 | }, 3426 | "notification-url": "https://packagist.org/downloads/", 3427 | "license": [ 3428 | "BSD-3-Clause" 3429 | ], 3430 | "authors": [ 3431 | { 3432 | "name": "Sebastian Bergmann", 3433 | "email": "sebastian@phpunit.de" 3434 | } 3435 | ], 3436 | "description": "Provides a list of PHP built-in functions that operate on resources", 3437 | "homepage": "https://www.github.com/sebastianbergmann/resource-operations", 3438 | "support": { 3439 | "issues": "https://github.com/sebastianbergmann/resource-operations/issues", 3440 | "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.3" 3441 | }, 3442 | "funding": [ 3443 | { 3444 | "url": "https://github.com/sebastianbergmann", 3445 | "type": "github" 3446 | } 3447 | ], 3448 | "time": "2020-09-28T06:45:17+00:00" 3449 | }, 3450 | { 3451 | "name": "sebastian/type", 3452 | "version": "2.3.4", 3453 | "source": { 3454 | "type": "git", 3455 | "url": "https://github.com/sebastianbergmann/type.git", 3456 | "reference": "b8cd8a1c753c90bc1a0f5372170e3e489136f914" 3457 | }, 3458 | "dist": { 3459 | "type": "zip", 3460 | "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/b8cd8a1c753c90bc1a0f5372170e3e489136f914", 3461 | "reference": "b8cd8a1c753c90bc1a0f5372170e3e489136f914", 3462 | "shasum": "" 3463 | }, 3464 | "require": { 3465 | "php": ">=7.3" 3466 | }, 3467 | "require-dev": { 3468 | "phpunit/phpunit": "^9.3" 3469 | }, 3470 | "type": "library", 3471 | "extra": { 3472 | "branch-alias": { 3473 | "dev-master": "2.3-dev" 3474 | } 3475 | }, 3476 | "autoload": { 3477 | "classmap": [ 3478 | "src/" 3479 | ] 3480 | }, 3481 | "notification-url": "https://packagist.org/downloads/", 3482 | "license": [ 3483 | "BSD-3-Clause" 3484 | ], 3485 | "authors": [ 3486 | { 3487 | "name": "Sebastian Bergmann", 3488 | "email": "sebastian@phpunit.de", 3489 | "role": "lead" 3490 | } 3491 | ], 3492 | "description": "Collection of value objects that represent the types of the PHP type system", 3493 | "homepage": "https://github.com/sebastianbergmann/type", 3494 | "support": { 3495 | "issues": "https://github.com/sebastianbergmann/type/issues", 3496 | "source": "https://github.com/sebastianbergmann/type/tree/2.3.4" 3497 | }, 3498 | "funding": [ 3499 | { 3500 | "url": "https://github.com/sebastianbergmann", 3501 | "type": "github" 3502 | } 3503 | ], 3504 | "time": "2021-06-15T12:49:02+00:00" 3505 | }, 3506 | { 3507 | "name": "sebastian/version", 3508 | "version": "3.0.2", 3509 | "source": { 3510 | "type": "git", 3511 | "url": "https://github.com/sebastianbergmann/version.git", 3512 | "reference": "c6c1022351a901512170118436c764e473f6de8c" 3513 | }, 3514 | "dist": { 3515 | "type": "zip", 3516 | "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c", 3517 | "reference": "c6c1022351a901512170118436c764e473f6de8c", 3518 | "shasum": "" 3519 | }, 3520 | "require": { 3521 | "php": ">=7.3" 3522 | }, 3523 | "type": "library", 3524 | "extra": { 3525 | "branch-alias": { 3526 | "dev-master": "3.0-dev" 3527 | } 3528 | }, 3529 | "autoload": { 3530 | "classmap": [ 3531 | "src/" 3532 | ] 3533 | }, 3534 | "notification-url": "https://packagist.org/downloads/", 3535 | "license": [ 3536 | "BSD-3-Clause" 3537 | ], 3538 | "authors": [ 3539 | { 3540 | "name": "Sebastian Bergmann", 3541 | "email": "sebastian@phpunit.de", 3542 | "role": "lead" 3543 | } 3544 | ], 3545 | "description": "Library that helps with managing the version number of Git-hosted PHP projects", 3546 | "homepage": "https://github.com/sebastianbergmann/version", 3547 | "support": { 3548 | "issues": "https://github.com/sebastianbergmann/version/issues", 3549 | "source": "https://github.com/sebastianbergmann/version/tree/3.0.2" 3550 | }, 3551 | "funding": [ 3552 | { 3553 | "url": "https://github.com/sebastianbergmann", 3554 | "type": "github" 3555 | } 3556 | ], 3557 | "time": "2020-09-28T06:39:44+00:00" 3558 | }, 3559 | { 3560 | "name": "symfony/routing", 3561 | "version": "v4.4.37", 3562 | "source": { 3563 | "type": "git", 3564 | "url": "https://github.com/symfony/routing.git", 3565 | "reference": "324f7f73b89cd30012575119430ccfb1dfbc24be" 3566 | }, 3567 | "dist": { 3568 | "type": "zip", 3569 | "url": "https://api.github.com/repos/symfony/routing/zipball/324f7f73b89cd30012575119430ccfb1dfbc24be", 3570 | "reference": "324f7f73b89cd30012575119430ccfb1dfbc24be", 3571 | "shasum": "" 3572 | }, 3573 | "require": { 3574 | "php": ">=7.1.3", 3575 | "symfony/polyfill-php80": "^1.16" 3576 | }, 3577 | "conflict": { 3578 | "symfony/config": "<4.2", 3579 | "symfony/dependency-injection": "<3.4", 3580 | "symfony/yaml": "<3.4" 3581 | }, 3582 | "require-dev": { 3583 | "doctrine/annotations": "^1.10.4", 3584 | "psr/log": "^1|^2|^3", 3585 | "symfony/config": "^4.2|^5.0", 3586 | "symfony/dependency-injection": "^3.4|^4.0|^5.0", 3587 | "symfony/expression-language": "^3.4|^4.0|^5.0", 3588 | "symfony/http-foundation": "^3.4|^4.0|^5.0", 3589 | "symfony/yaml": "^3.4|^4.0|^5.0" 3590 | }, 3591 | "suggest": { 3592 | "doctrine/annotations": "For using the annotation loader", 3593 | "symfony/config": "For using the all-in-one router or any loader", 3594 | "symfony/expression-language": "For using expression matching", 3595 | "symfony/http-foundation": "For using a Symfony Request object", 3596 | "symfony/yaml": "For using the YAML loader" 3597 | }, 3598 | "type": "library", 3599 | "autoload": { 3600 | "psr-4": { 3601 | "Symfony\\Component\\Routing\\": "" 3602 | }, 3603 | "exclude-from-classmap": [ 3604 | "/Tests/" 3605 | ] 3606 | }, 3607 | "notification-url": "https://packagist.org/downloads/", 3608 | "license": [ 3609 | "MIT" 3610 | ], 3611 | "authors": [ 3612 | { 3613 | "name": "Fabien Potencier", 3614 | "email": "fabien@symfony.com" 3615 | }, 3616 | { 3617 | "name": "Symfony Community", 3618 | "homepage": "https://symfony.com/contributors" 3619 | } 3620 | ], 3621 | "description": "Maps an HTTP request to a set of configuration variables", 3622 | "homepage": "https://symfony.com", 3623 | "keywords": [ 3624 | "router", 3625 | "routing", 3626 | "uri", 3627 | "url" 3628 | ], 3629 | "support": { 3630 | "source": "https://github.com/symfony/routing/tree/v4.4.37" 3631 | }, 3632 | "funding": [ 3633 | { 3634 | "url": "https://symfony.com/sponsor", 3635 | "type": "custom" 3636 | }, 3637 | { 3638 | "url": "https://github.com/fabpot", 3639 | "type": "github" 3640 | }, 3641 | { 3642 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 3643 | "type": "tidelift" 3644 | } 3645 | ], 3646 | "time": "2022-01-02T09:41:36+00:00" 3647 | }, 3648 | { 3649 | "name": "symfony/yaml", 3650 | "version": "v5.4.3", 3651 | "source": { 3652 | "type": "git", 3653 | "url": "https://github.com/symfony/yaml.git", 3654 | "reference": "e80f87d2c9495966768310fc531b487ce64237a2" 3655 | }, 3656 | "dist": { 3657 | "type": "zip", 3658 | "url": "https://api.github.com/repos/symfony/yaml/zipball/e80f87d2c9495966768310fc531b487ce64237a2", 3659 | "reference": "e80f87d2c9495966768310fc531b487ce64237a2", 3660 | "shasum": "" 3661 | }, 3662 | "require": { 3663 | "php": ">=7.2.5", 3664 | "symfony/deprecation-contracts": "^2.1|^3", 3665 | "symfony/polyfill-ctype": "^1.8" 3666 | }, 3667 | "conflict": { 3668 | "symfony/console": "<5.3" 3669 | }, 3670 | "require-dev": { 3671 | "symfony/console": "^5.3|^6.0" 3672 | }, 3673 | "suggest": { 3674 | "symfony/console": "For validating YAML files using the lint command" 3675 | }, 3676 | "bin": [ 3677 | "Resources/bin/yaml-lint" 3678 | ], 3679 | "type": "library", 3680 | "autoload": { 3681 | "psr-4": { 3682 | "Symfony\\Component\\Yaml\\": "" 3683 | }, 3684 | "exclude-from-classmap": [ 3685 | "/Tests/" 3686 | ] 3687 | }, 3688 | "notification-url": "https://packagist.org/downloads/", 3689 | "license": [ 3690 | "MIT" 3691 | ], 3692 | "authors": [ 3693 | { 3694 | "name": "Fabien Potencier", 3695 | "email": "fabien@symfony.com" 3696 | }, 3697 | { 3698 | "name": "Symfony Community", 3699 | "homepage": "https://symfony.com/contributors" 3700 | } 3701 | ], 3702 | "description": "Loads and dumps YAML files", 3703 | "homepage": "https://symfony.com", 3704 | "support": { 3705 | "source": "https://github.com/symfony/yaml/tree/v5.4.3" 3706 | }, 3707 | "funding": [ 3708 | { 3709 | "url": "https://symfony.com/sponsor", 3710 | "type": "custom" 3711 | }, 3712 | { 3713 | "url": "https://github.com/fabpot", 3714 | "type": "github" 3715 | }, 3716 | { 3717 | "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 3718 | "type": "tidelift" 3719 | } 3720 | ], 3721 | "time": "2022-01-26T16:32:32+00:00" 3722 | }, 3723 | { 3724 | "name": "theseer/tokenizer", 3725 | "version": "1.2.1", 3726 | "source": { 3727 | "type": "git", 3728 | "url": "https://github.com/theseer/tokenizer.git", 3729 | "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e" 3730 | }, 3731 | "dist": { 3732 | "type": "zip", 3733 | "url": "https://api.github.com/repos/theseer/tokenizer/zipball/34a41e998c2183e22995f158c581e7b5e755ab9e", 3734 | "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e", 3735 | "shasum": "" 3736 | }, 3737 | "require": { 3738 | "ext-dom": "*", 3739 | "ext-tokenizer": "*", 3740 | "ext-xmlwriter": "*", 3741 | "php": "^7.2 || ^8.0" 3742 | }, 3743 | "type": "library", 3744 | "autoload": { 3745 | "classmap": [ 3746 | "src/" 3747 | ] 3748 | }, 3749 | "notification-url": "https://packagist.org/downloads/", 3750 | "license": [ 3751 | "BSD-3-Clause" 3752 | ], 3753 | "authors": [ 3754 | { 3755 | "name": "Arne Blankerts", 3756 | "email": "arne@blankerts.de", 3757 | "role": "Developer" 3758 | } 3759 | ], 3760 | "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", 3761 | "support": { 3762 | "issues": "https://github.com/theseer/tokenizer/issues", 3763 | "source": "https://github.com/theseer/tokenizer/tree/1.2.1" 3764 | }, 3765 | "funding": [ 3766 | { 3767 | "url": "https://github.com/theseer", 3768 | "type": "github" 3769 | } 3770 | ], 3771 | "time": "2021-07-28T10:34:58+00:00" 3772 | }, 3773 | { 3774 | "name": "twig/twig", 3775 | "version": "v3.3.8", 3776 | "source": { 3777 | "type": "git", 3778 | "url": "https://github.com/twigphp/Twig.git", 3779 | "reference": "972d8604a92b7054828b539f2febb0211dd5945c" 3780 | }, 3781 | "dist": { 3782 | "type": "zip", 3783 | "url": "https://api.github.com/repos/twigphp/Twig/zipball/972d8604a92b7054828b539f2febb0211dd5945c", 3784 | "reference": "972d8604a92b7054828b539f2febb0211dd5945c", 3785 | "shasum": "" 3786 | }, 3787 | "require": { 3788 | "php": ">=7.2.5", 3789 | "symfony/polyfill-ctype": "^1.8", 3790 | "symfony/polyfill-mbstring": "^1.3" 3791 | }, 3792 | "require-dev": { 3793 | "psr/container": "^1.0", 3794 | "symfony/phpunit-bridge": "^4.4.9|^5.0.9|^6.0" 3795 | }, 3796 | "type": "library", 3797 | "extra": { 3798 | "branch-alias": { 3799 | "dev-master": "3.3-dev" 3800 | } 3801 | }, 3802 | "autoload": { 3803 | "psr-4": { 3804 | "Twig\\": "src/" 3805 | } 3806 | }, 3807 | "notification-url": "https://packagist.org/downloads/", 3808 | "license": [ 3809 | "BSD-3-Clause" 3810 | ], 3811 | "authors": [ 3812 | { 3813 | "name": "Fabien Potencier", 3814 | "email": "fabien@symfony.com", 3815 | "homepage": "http://fabien.potencier.org", 3816 | "role": "Lead Developer" 3817 | }, 3818 | { 3819 | "name": "Twig Team", 3820 | "role": "Contributors" 3821 | }, 3822 | { 3823 | "name": "Armin Ronacher", 3824 | "email": "armin.ronacher@active-4.com", 3825 | "role": "Project Founder" 3826 | } 3827 | ], 3828 | "description": "Twig, the flexible, fast, and secure template language for PHP", 3829 | "homepage": "https://twig.symfony.com", 3830 | "keywords": [ 3831 | "templating" 3832 | ], 3833 | "support": { 3834 | "issues": "https://github.com/twigphp/Twig/issues", 3835 | "source": "https://github.com/twigphp/Twig/tree/v3.3.8" 3836 | }, 3837 | "funding": [ 3838 | { 3839 | "url": "https://github.com/fabpot", 3840 | "type": "github" 3841 | }, 3842 | { 3843 | "url": "https://tidelift.com/funding/github/packagist/twig/twig", 3844 | "type": "tidelift" 3845 | } 3846 | ], 3847 | "time": "2022-02-04T06:59:48+00:00" 3848 | }, 3849 | { 3850 | "name": "webmozart/assert", 3851 | "version": "1.10.0", 3852 | "source": { 3853 | "type": "git", 3854 | "url": "https://github.com/webmozarts/assert.git", 3855 | "reference": "6964c76c7804814a842473e0c8fd15bab0f18e25" 3856 | }, 3857 | "dist": { 3858 | "type": "zip", 3859 | "url": "https://api.github.com/repos/webmozarts/assert/zipball/6964c76c7804814a842473e0c8fd15bab0f18e25", 3860 | "reference": "6964c76c7804814a842473e0c8fd15bab0f18e25", 3861 | "shasum": "" 3862 | }, 3863 | "require": { 3864 | "php": "^7.2 || ^8.0", 3865 | "symfony/polyfill-ctype": "^1.8" 3866 | }, 3867 | "conflict": { 3868 | "phpstan/phpstan": "<0.12.20", 3869 | "vimeo/psalm": "<4.6.1 || 4.6.2" 3870 | }, 3871 | "require-dev": { 3872 | "phpunit/phpunit": "^8.5.13" 3873 | }, 3874 | "type": "library", 3875 | "extra": { 3876 | "branch-alias": { 3877 | "dev-master": "1.10-dev" 3878 | } 3879 | }, 3880 | "autoload": { 3881 | "psr-4": { 3882 | "Webmozart\\Assert\\": "src/" 3883 | } 3884 | }, 3885 | "notification-url": "https://packagist.org/downloads/", 3886 | "license": [ 3887 | "MIT" 3888 | ], 3889 | "authors": [ 3890 | { 3891 | "name": "Bernhard Schussek", 3892 | "email": "bschussek@gmail.com" 3893 | } 3894 | ], 3895 | "description": "Assertions to validate method input/output with nice error messages.", 3896 | "keywords": [ 3897 | "assert", 3898 | "check", 3899 | "validate" 3900 | ], 3901 | "support": { 3902 | "issues": "https://github.com/webmozarts/assert/issues", 3903 | "source": "https://github.com/webmozarts/assert/tree/1.10.0" 3904 | }, 3905 | "time": "2021-03-09T10:59:23+00:00" 3906 | } 3907 | ], 3908 | "aliases": [], 3909 | "minimum-stability": "stable", 3910 | "stability-flags": [], 3911 | "prefer-stable": false, 3912 | "prefer-lowest": false, 3913 | "platform": [], 3914 | "platform-dev": [], 3915 | "plugin-api-version": "2.1.0" 3916 | } 3917 | -------------------------------------------------------------------------------- /doc/LICENSE: -------------------------------------------------------------------------------- 1 | THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED. 2 | 3 | BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS. 4 | 5 | 1. Definitions 6 | 7 | "Adaptation" means a work based upon the Work, or upon the Work and other pre-existing works, such as a translation, adaptation, derivative work, arrangement of music or other alterations of a literary or artistic work, or phonogram or performance and includes cinematographic adaptations or any other form in which the Work may be recast, transformed, or adapted including in any form recognizably derived from the original, except that a work that constitutes a Collection will not be considered an Adaptation for the purpose of this License. For the avoidance of doubt, where the Work is a musical work, performance or phonogram, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered an Adaptation for the purpose of this License. 8 | "Collection" means a collection of literary or artistic works, such as encyclopedias and anthologies, or performances, phonograms or broadcasts, or other works or subject matter other than works listed in Section 1(f) below, which, by reason of the selection and arrangement of their contents, constitute intellectual creations, in which the Work is included in its entirety in unmodified form along with one or more other contributions, each constituting separate and independent works in themselves, which together are assembled into a collective whole. A work that constitutes a Collection will not be considered an Adaptation (as defined above) for the purposes of this License. 9 | "Distribute" means to make available to the public the original and copies of the Work through sale or other transfer of ownership. 10 | "Licensor" means the individual, individuals, entity or entities that offer(s) the Work under the terms of this License. 11 | "Original Author" means, in the case of a literary or artistic work, the individual, individuals, entity or entities who created the Work or if no individual or entity can be identified, the publisher; and in addition (i) in the case of a performance the actors, singers, musicians, dancers, and other persons who act, sing, deliver, declaim, play in, interpret or otherwise perform literary or artistic works or expressions of folklore; (ii) in the case of a phonogram the producer being the person or legal entity who first fixes the sounds of a performance or other sounds; and, (iii) in the case of broadcasts, the organization that transmits the broadcast. 12 | "Work" means the literary and/or artistic work offered under the terms of this License including without limitation any production in the literary, scientific and artistic domain, whatever may be the mode or form of its expression including digital form, such as a book, pamphlet and other writing; a lecture, address, sermon or other work of the same nature; a dramatic or dramatico-musical work; a choreographic work or entertainment in dumb show; a musical composition with or without words; a cinematographic work to which are assimilated works expressed by a process analogous to cinematography; a work of drawing, painting, architecture, sculpture, engraving or lithography; a photographic work to which are assimilated works expressed by a process analogous to photography; a work of applied art; an illustration, map, plan, sketch or three-dimensional work relative to geography, topography, architecture or science; a performance; a broadcast; a phonogram; a compilation of data to the extent it is protected as a copyrightable work; or a work performed by a variety or circus performer to the extent it is not otherwise considered a literary or artistic work. 13 | "You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation. 14 | "Publicly Perform" means to perform public recitations of the Work and to communicate to the public those public recitations, by any means or process, including by wire or wireless means or public digital performances; to make available to the public Works in such a way that members of the public may access these Works from a place and at a place individually chosen by them; to perform the Work to the public by any means or process and the communication to the public of the performances of the Work, including by public digital performance; to broadcast and rebroadcast the Work by any means including signs, sounds or images. 15 | "Reproduce" means to make copies of the Work by any means including without limitation by sound or visual recordings and the right of fixation and reproducing fixations of the Work, including storage of a protected performance or phonogram in digital form or other electronic medium. 16 | 17 | 2. Fair Dealing Rights. Nothing in this License is intended to reduce, limit, or restrict any uses free from copyright or rights arising from limitations or exceptions that are provided for in connection with the copyright protection under copyright law or other applicable laws. 18 | 19 | 3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below: 20 | 21 | to Reproduce the Work, to incorporate the Work into one or more Collections, and to Reproduce the Work as incorporated in the Collections; and, 22 | to Distribute and Publicly Perform the Work including as incorporated in Collections. 23 | 24 | The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats, but otherwise you have no rights to make Adaptations. Subject to 8(f), all rights not expressly granted by Licensor are hereby reserved, including but not limited to the rights set forth in Section 4(d). 25 | 26 | 4. Restrictions. The license granted in Section 3 above is expressly made subject to and limited by the following restrictions: 27 | 28 | You may Distribute or Publicly Perform the Work only under the terms of this License. You must include a copy of, or the Uniform Resource Identifier (URI) for, this License with every copy of the Work You Distribute or Publicly Perform. You may not offer or impose any terms on the Work that restrict the terms of this License or the ability of the recipient of the Work to exercise the rights granted to that recipient under the terms of the License. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties with every copy of the Work You Distribute or Publicly Perform. When You Distribute or Publicly Perform the Work, You may not impose any effective technological measures on the Work that restrict the ability of a recipient of the Work from You to exercise the rights granted to that recipient under the terms of the License. This Section 4(a) applies to the Work as incorporated in a Collection, but this does not require the Collection apart from the Work itself to be made subject to the terms of this License. If You create a Collection, upon notice from any Licensor You must, to the extent practicable, remove from the Collection any credit as required by Section 4(c), as requested. 29 | You may not exercise any of the rights granted to You in Section 3 above in any manner that is primarily intended for or directed toward commercial advantage or private monetary compensation. The exchange of the Work for other copyrighted works by means of digital file-sharing or otherwise shall not be considered to be intended for or directed toward commercial advantage or private monetary compensation, provided there is no payment of any monetary compensation in connection with the exchange of copyrighted works. 30 | If You Distribute, or Publicly Perform the Work or Collections, You must, unless a request has been made pursuant to Section 4(a), keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or if the Original Author and/or Licensor designate another party or parties (e.g., a sponsor institute, publishing entity, journal) for attribution ("Attribution Parties") in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; (ii) the title of the Work if supplied; (iii) to the extent reasonably practicable, the URI, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work. The credit required by this Section 4(c) may be implemented in any reasonable manner; provided, however, that in the case of a Collection, at a minimum such credit will appear, if a credit for all contributing authors of Collection appears, then as part of these credits and in a manner at least as prominent as the credits for the other contributing authors. For the avoidance of doubt, You may only use the credit required by this Section for the purpose of attribution in the manner set out above and, by exercising Your rights under this License, You may not implicitly or explicitly assert or imply any connection with, sponsorship or endorsement by the Original Author, Licensor and/or Attribution Parties, as appropriate, of You or Your use of the Work, without the separate, express prior written permission of the Original Author, Licensor and/or Attribution Parties. 31 | 32 | For the avoidance of doubt: 33 | Non-waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme cannot be waived, the Licensor reserves the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; 34 | Waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme can be waived, the Licensor reserves the exclusive right to collect such royalties for any exercise by You of the rights granted under this License if Your exercise of such rights is for a purpose or use which is otherwise than noncommercial as permitted under Section 4(b) and otherwise waives the right to collect royalties through any statutory or compulsory licensing scheme; and, 35 | Voluntary License Schemes. The Licensor reserves the right to collect royalties, whether individually or, in the event that the Licensor is a member of a collecting society that administers voluntary licensing schemes, via that society, from any exercise by You of the rights granted under this License that is for a purpose or use which is otherwise than noncommercial as permitted under Section 4(b). 36 | Except as otherwise agreed in writing by the Licensor or as may be otherwise permitted by applicable law, if You Reproduce, Distribute or Publicly Perform the Work either by itself or as part of any Collections, You must not distort, mutilate, modify or take other derogatory action in relation to the Work which would be prejudicial to the Original Author's honor or reputation. 37 | 38 | 5. Representations, Warranties and Disclaimer 39 | 40 | UNLESS OTHERWISE MUTUALLY AGREED BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU. 41 | 42 | 6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 43 | 44 | 7. Termination 45 | 46 | This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Collections from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License. 47 | Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above. 48 | 49 | 8. Miscellaneous 50 | 51 | Each time You Distribute or Publicly Perform the Work or a Collection, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License. 52 | If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable. 53 | No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent. 54 | This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You. 55 | The rights granted under, and the subject matter referenced, in this License were drafted utilizing the terminology of the Berne Convention for the Protection of Literary and Artistic Works (as amended on September 28, 1979), the Rome Convention of 1961, the WIPO Copyright Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996 and the Universal Copyright Convention (as revised on July 24, 1971). These rights and subject matter take effect in the relevant jurisdiction in which the License terms are sought to be enforced according to the corresponding provisions of the implementation of those treaty provisions in the applicable national law. If the standard suite of rights granted under applicable copyright law includes additional rights not granted under this License, such additional rights are deemed to be included in the License; this License is not intended to restrict the license of any rights under applicable law. 56 | -------------------------------------------------------------------------------- /doc/index.rst: -------------------------------------------------------------------------------- 1 | Object Routing Library 2 | ====================== 3 | 4 | This library makes generating routes for objects a breeze, and is not tied to any concrete router implementation. As 5 | part of the library, we ship an adapter for Symfony's router. For Symfony router version <2.2 use 6 | ``JMS/ObjectRouting/Symfony/Symfony21Adapter`` and for a version >=2.2 use ``JMS/ObjectRouting/Symfony/Symfony22Adapter``. 7 | 8 | Installation 9 | ------------ 10 | You can install this library through composer: 11 | 12 | .. code-block :: bash 13 | 14 | composer require jms/object-routing 15 | 16 | or add it to your ``composer.json`` file directly. 17 | 18 | Usage 19 | ----- 20 | 21 | Annotations 22 | ---------- 23 | :: 24 | 25 | use JMS\ObjectRouting\Annotation\ObjectRoute; 26 | 27 | /** 28 | * @ObjectRoute(type = "view", name = "the-actual-route-name", params = { 29 | * "slug": "slug", 30 | * }) 31 | */ 32 | class BlogPost 33 | { 34 | public function getSlug() 35 | { 36 | /** .. */ 37 | } 38 | } 39 | 40 | Php 41 | ---- 42 | :: 43 | 44 | addRoute('view', 'the-actual-route-name', array('slug' => 'slug')); 49 | 50 | return $metadata; 51 | 52 | Yaml 53 | ---- 54 | file: Acme.Model.BlogPost.yml:: 55 | 56 | Acme\Model\BlogPost: 57 | view: 58 | name: "the-actual-route-name" 59 | params: 60 | slug: "slug" 61 | 62 | Xml 63 | ---- 64 | :: 65 | 66 | 67 | 68 | 69 | 70 | 71 | slug 72 | 73 | 74 | 75 | 76 | 77 | Route parameters are key-value pairs where keys represent the placeholder in the URL template, and values can be any 78 | value that is supported by Symfony2's PropertyAccess Component. 79 | 80 | If you are using Symfony2 and you defined a route like this:: 81 | 82 | class BlogPostController 83 | { 84 | /** 85 | * @Route("/blog-posts/{slug}", name = "the-actual-route-name") 86 | */ 87 | public function viewAction(BlogPost $post) 88 | { 89 | } 90 | } 91 | 92 | you can generate this route with the object router very easily:: 93 | 94 | $objectRouter->generate('view', $blogPost); 95 | // equivalent to 96 | $router->generate('the-actual-route-name', array('slug' => $blogPost->getSlug())); 97 | 98 | For Twig, this library also provides two new functions: 99 | 100 | .. code-block :: html+jinja 101 | 102 | {{ object_path('view', blogPost) }} 103 | {# equivalent to #} 104 | {{ path('the-actual-route-name', {'slug': blogPost.slug}) }} 105 | 106 | {{ object_url('view', blogPost) }} 107 | {# equivalent to #} 108 | {{ url('the-actual-route-name', {'slug': blogPost.slug}) }} 109 | 110 | For compatibility reason this library is shipped with two Twig extensions. If you are using Twig 1.* 111 | ``JMS/ObjectRouting/Twig/RoutingExtension`` will fit your needs and if you need support for Twig 2.* you can use 112 | ``JMS/ObjectRouting/Twig/Routing20Extension``. 113 | 114 | License 115 | ------- 116 | 117 | The code is released under the business-friendly `Apache2 license`_. 118 | 119 | Documentation is subject to the `Attribution-NonCommercial-NoDerivs 3.0 Unported 120 | license`_. 121 | 122 | .. _Apache2 license: http://www.apache.org/licenses/LICENSE-2.0.html 123 | .. _Attribution-NonCommercial-NoDerivs 3.0 Unported license: http://creativecommons.org/licenses/by-nc-nd/3.0/ 124 | 125 | -------------------------------------------------------------------------------- /phpunit.xml.dist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 14 | 15 | 16 | ./tests/JMS/ 17 | 18 | 19 | 20 | 21 | 22 | performance 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /src/JMS/ObjectRouting/Annotation/ObjectRoute.php: -------------------------------------------------------------------------------- 1 | 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | namespace JMS\ObjectRouting\Annotation; 20 | 21 | /** 22 | * @Annotation 23 | * @Target("CLASS") 24 | */ 25 | #[\Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_CLASS)] 26 | final class ObjectRoute 27 | { 28 | /** @var string @Required */ 29 | public $type; 30 | 31 | /** @var string @Required */ 32 | public $name; 33 | 34 | /** @var array */ 35 | public $params = array(); 36 | 37 | public function __construct(string $type, string $name, array $params = []) 38 | { 39 | $this->type = $type; 40 | $this->name = $name; 41 | $this->params = $params; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/JMS/ObjectRouting/Exception/Exception.php: -------------------------------------------------------------------------------- 1 | level) { 13 | case LIBXML_ERR_WARNING: 14 | $level = 'WARNING'; 15 | break; 16 | case LIBXML_ERR_FATAL: 17 | $level = 'FATAL'; 18 | break; 19 | case LIBXML_ERR_ERROR: 20 | $level = 'ERROR'; 21 | break; 22 | default: 23 | $level = 'UNKNOWN'; 24 | } 25 | parent::__construct(sprintf('[%s] %s in %s (line: %d, column: %d)', $level, $error->message, $error->file, $error->line, $error->column)); 26 | $this->xmlError = $error; 27 | } 28 | 29 | public function getXmlError() 30 | { 31 | return $this->xmlError; 32 | } 33 | } -------------------------------------------------------------------------------- /src/JMS/ObjectRouting/Metadata/ClassMetadata.php: -------------------------------------------------------------------------------- 1 | 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | namespace JMS\ObjectRouting\Metadata; 20 | 21 | use Metadata\MergeableClassMetadata; 22 | 23 | class ClassMetadata extends MergeableClassMetadata 24 | { 25 | public $routes = array(); 26 | 27 | public function addRoute($type, $name, array $params = array()) 28 | { 29 | $this->routes[$type] = array( 30 | 'name' => $name, 31 | 'params' => $params, 32 | ); 33 | } 34 | 35 | public function serialize() 36 | { 37 | return serialize( 38 | array( 39 | $this->routes, 40 | parent::serialize(), 41 | ) 42 | ); 43 | } 44 | 45 | public function unserialize($str) 46 | { 47 | list( 48 | $this->routes, 49 | $parentStr 50 | ) = unserialize($str); 51 | 52 | parent::unserialize($parentStr); 53 | } 54 | 55 | } -------------------------------------------------------------------------------- /src/JMS/ObjectRouting/Metadata/Driver/AnnotationDriver.php: -------------------------------------------------------------------------------- 1 | 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | namespace JMS\ObjectRouting\Metadata\Driver; 20 | 21 | use Doctrine\Common\Annotations\Reader; 22 | use JMS\ObjectRouting\Annotation\ObjectRoute; 23 | use JMS\ObjectRouting\Metadata\ClassMetadata; 24 | use Metadata\Driver\DriverInterface; 25 | 26 | class AnnotationDriver implements DriverInterface 27 | { 28 | private $reader; 29 | 30 | public function __construct(Reader $reader) 31 | { 32 | $this->reader = $reader; 33 | } 34 | 35 | public function loadMetadataForClass(\ReflectionClass $class): ?ClassMetadata 36 | { 37 | $metadata = new ClassMetadata($class->name); 38 | 39 | $hasMetadata = false; 40 | foreach ([...$this->reader->getClassAnnotations($class), ...$this->buildAnnotations($class)] as $annot) { 41 | if ($annot instanceof ObjectRoute) { 42 | $hasMetadata = true; 43 | $metadata->addRoute($annot->type, $annot->name, $annot->params); 44 | } 45 | } 46 | 47 | return $hasMetadata ? $metadata : null; 48 | } 49 | 50 | private function buildAnnotations(\ReflectionClass $class): array 51 | { 52 | $annots = []; 53 | foreach ($class->getAttributes() as $attr) { 54 | if (str_starts_with($attr->getName(), 'JMS\\ObjectRouting\\Annotation\\')) { 55 | $annots[] = $attr->newInstance(); 56 | } 57 | } 58 | 59 | return $annots; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /src/JMS/ObjectRouting/Metadata/Driver/PhpDriver.php: -------------------------------------------------------------------------------- 1 | 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | namespace JMS\ObjectRouting\Metadata\Driver; 20 | 21 | 22 | use JMS\ObjectRouting\Exception\RuntimeException; 23 | use JMS\ObjectRouting\Metadata\ClassMetadata; 24 | use Metadata\Driver\AbstractFileDriver; 25 | 26 | /** 27 | * Class PhpDriver 28 | * @package JMS\ObjectRouting\Metadata\Driver 29 | * @author Sebastian Kroczek 30 | */ 31 | class PhpDriver extends AbstractFileDriver 32 | { 33 | protected function loadMetadataFromFile(\ReflectionClass $class, $file): ?ClassMetadata 34 | { 35 | $metadata = require $file; 36 | if (!$metadata instanceof ClassMetadata) { 37 | throw new RuntimeException(sprintf('The file %s was expected to return an instance of ClassMetadata, but returned %s.', $file, json_encode($metadata))); 38 | } 39 | if ($metadata->name !== $class->name) { 40 | throw new RuntimeException(sprintf('The file %s was expected to return metadata for class %s, but instead returned metadata for class %s.', $class->name, $metadata->name)); 41 | } 42 | 43 | return $metadata; 44 | } 45 | 46 | protected function getExtension(): string 47 | { 48 | return 'php'; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /src/JMS/ObjectRouting/Metadata/Driver/XmlDriver.php: -------------------------------------------------------------------------------- 1 | 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | namespace JMS\ObjectRouting\Metadata\Driver; 20 | 21 | 22 | use JMS\ObjectRouting\Exception\RuntimeException; 23 | use JMS\ObjectRouting\Exception\XmlErrorException; 24 | use JMS\ObjectRouting\Metadata\ClassMetadata; 25 | use Metadata\Driver\AbstractFileDriver; 26 | 27 | /** 28 | * Class XmlDriver 29 | * @package JMS\ObjectRouting\Metadata\Driver 30 | * @author Sebastian Kroczek 31 | */ 32 | class XmlDriver extends AbstractFileDriver 33 | { 34 | 35 | /** 36 | * Parses the content of the file, and converts it to the desired metadata. 37 | * 38 | * @param \ReflectionClass $class 39 | * @param string $file 40 | * 41 | * @return \Metadata\ClassMetadata|null 42 | */ 43 | protected function loadMetadataFromFile(\ReflectionClass $class, $file): ?ClassMetadata 44 | { 45 | $previous = libxml_use_internal_errors(true); 46 | $elem = simplexml_load_file($file); 47 | libxml_use_internal_errors($previous); 48 | if (false === $elem) { 49 | throw new XmlErrorException(libxml_get_last_error()); 50 | } 51 | $metadata = new ClassMetadata($name = $class->name); 52 | if (!$elems = $elem->xpath("./class[@name = '".$name."']")) { 53 | throw new RuntimeException(sprintf('Could not find class %s inside XML element.', $name)); 54 | } 55 | $elem = reset($elems); 56 | $metadata->fileResources[] = $file; 57 | $metadata->fileResources[] = $class->getFileName(); 58 | 59 | if (null !== $xmlRootName = $elem->attributes()->{'xml-root-name'}) { 60 | $metadata->xmlRootName = (string)$xmlRootName; 61 | } 62 | if (null !== $xmlRootNamespace = $elem->attributes()->{'xml-root-namespace'}) { 63 | $metadata->xmlRootNamespace = (string)$xmlRootNamespace; 64 | } 65 | 66 | foreach ($elem->xpath('./route') as $r) { 67 | if ('' === $type = (string)$r->attributes()->{'type'}) { 68 | throw new RuntimeException('Could not find attribute "type" inside XML element.'); 69 | } 70 | if ('' === $name = (string)$r->attributes()->{'name'}) { 71 | throw new RuntimeException('Could not find attribute "name" inside XML element.'); 72 | } 73 | 74 | $params = array(); 75 | foreach ($r->xpath('./param') as $p) { 76 | $params[(string)$p->attributes()] = (string)$p; 77 | } 78 | 79 | $metadata->addRoute($type, $name, $params); 80 | } 81 | 82 | return $metadata; 83 | } 84 | 85 | /** 86 | * Returns the extension of the file. 87 | * 88 | * @return string 89 | */ 90 | protected function getExtension(): string 91 | { 92 | return 'xml'; 93 | } 94 | } 95 | -------------------------------------------------------------------------------- /src/JMS/ObjectRouting/Metadata/Driver/YamlDriver.php: -------------------------------------------------------------------------------- 1 | 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | namespace JMS\ObjectRouting\Metadata\Driver; 20 | 21 | use JMS\ObjectRouting\Exception\RuntimeException; 22 | use JMS\ObjectRouting\Metadata\ClassMetadata; 23 | use Metadata\Driver\AbstractFileDriver; 24 | use Symfony\Component\Yaml\Yaml; 25 | 26 | /** 27 | * Class YamlDriver 28 | * @package JMS\ObjectRouting\Metadata\Driver 29 | * @author Sebastian Kroczek 30 | */ 31 | class YamlDriver extends AbstractFileDriver 32 | { 33 | 34 | 35 | /** 36 | * Parses the content of the file, and converts it to the desired metadata. 37 | * 38 | * @param \ReflectionClass $class 39 | * @param string $file 40 | * 41 | * @return \Metadata\ClassMetadata|null 42 | */ 43 | protected function loadMetadataFromFile(\ReflectionClass $class, $file): ?ClassMetadata 44 | { 45 | $config = Yaml::parse(file_get_contents($file)); 46 | 47 | if (!isset($config[$name = $class->name])) { 48 | throw new RuntimeException(sprintf('Expected metadata for class %s to be defined in %s.', $class->name, $file)); 49 | } 50 | 51 | 52 | $config = $config[$name]; 53 | $metadata = new ClassMetadata($name); 54 | $metadata->fileResources[] = $file; 55 | $metadata->fileResources[] = $class->getFileName(); 56 | 57 | foreach ($config as $type => $value) { 58 | if (!array_key_exists('name', $value)) { 59 | throw new RuntimeException('Could not find key "type" inside yaml element.'); 60 | } 61 | $metadata->addRoute($type, $value['name'], array_key_exists('params', $value) ? $value['params'] : array()); 62 | } 63 | 64 | return $metadata; 65 | 66 | } 67 | 68 | /** 69 | * Returns the extension of the file. 70 | * 71 | * @return string 72 | */ 73 | protected function getExtension(): string 74 | { 75 | return 'yml'; 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /src/JMS/ObjectRouting/ObjectRouter.php: -------------------------------------------------------------------------------- 1 | 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | namespace JMS\ObjectRouting; 20 | 21 | use Doctrine\Common\Annotations\AnnotationReader; 22 | use JMS\ObjectRouting\Metadata\ClassMetadata; 23 | use JMS\ObjectRouting\Metadata\Driver\AnnotationDriver; 24 | use Metadata\MetadataFactory; 25 | use Metadata\MetadataFactoryInterface; 26 | use Symfony\Component\PropertyAccess\PropertyAccessor; 27 | 28 | class ObjectRouter 29 | { 30 | private $router; 31 | private $metadataFactory; 32 | private $accessor; 33 | 34 | public static function create(RouterInterface $router) 35 | { 36 | return new self( 37 | $router, 38 | new MetadataFactory( 39 | new AnnotationDriver(new AnnotationReader()) 40 | ) 41 | ); 42 | } 43 | 44 | public function __construct(RouterInterface $router, MetadataFactoryInterface $metadataFactory) 45 | { 46 | $this->router = $router; 47 | $this->metadataFactory = $metadataFactory; 48 | $this->accessor = new PropertyAccessor(); 49 | } 50 | 51 | /** 52 | * Generates a path for an object. 53 | * 54 | * @param string $type 55 | * @param object $object 56 | * @param boolean $absolute 57 | * @param array $extraParams 58 | * 59 | * @throws \InvalidArgumentException 60 | */ 61 | public function generate($type, $object, $absolute = false, array $extraParams = array()) 62 | { 63 | if ( ! is_object($object)) { 64 | throw new \InvalidArgumentException(sprintf('$object must be an object, but got "%s".', gettype($object))); 65 | } 66 | 67 | /** @var $metadata ClassMetadata */ 68 | $metadata = $this->metadataFactory->getMetadataForClass(get_class($object)); 69 | if (null === $metadata) { 70 | throw new \RuntimeException(sprintf('There were no object routes defined for class "%s".', get_class($object))); 71 | } 72 | 73 | if ( ! isset($metadata->routes[$type])) { 74 | throw new \RuntimeException(sprintf( 75 | 'The object of class "%s" has no route with type "%s". Available types: %s', 76 | get_class($object), 77 | $type, 78 | implode(', ', array_keys($metadata->routes)) 79 | )); 80 | } 81 | 82 | $route = $metadata->routes[$type]; 83 | 84 | $params = $extraParams; 85 | foreach ($route['params'] as $k => $path) { 86 | $params[$k] = $this->accessor->getValue($object, $path); 87 | } 88 | 89 | return $this->router->generate($route['name'], $params, $absolute); 90 | } 91 | 92 | public function path($type, $object, array $extraParams = array()) 93 | { 94 | return $this->generate($type, $object, false, $extraParams); 95 | } 96 | 97 | public function url($type, $object, array $extraParams = array()) 98 | { 99 | return $this->generate($type, $object, true, $extraParams); 100 | } 101 | } -------------------------------------------------------------------------------- /src/JMS/ObjectRouting/RouterInterface.php: -------------------------------------------------------------------------------- 1 | 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | namespace JMS\ObjectRouting; 20 | 21 | interface RouterInterface 22 | { 23 | public function generate($name, array $params, $absolute = false); 24 | } -------------------------------------------------------------------------------- /src/JMS/ObjectRouting/Symfony/Symfony21Adapter.php: -------------------------------------------------------------------------------- 1 | 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | namespace JMS\ObjectRouting\Symfony; 20 | 21 | use JMS\ObjectRouting\RouterInterface; 22 | 23 | class Symfony21Adapter implements RouterInterface 24 | { 25 | private $delegate; 26 | 27 | public function __construct(\Symfony\Component\Routing\RouterInterface $router) 28 | { 29 | $this->delegate = $router; 30 | } 31 | 32 | public function generate($name, array $params, $absolute = false) 33 | { 34 | return $this->delegate->generate($name, $params, $absolute); 35 | } 36 | } -------------------------------------------------------------------------------- /src/JMS/ObjectRouting/Symfony/Symfony22Adapter.php: -------------------------------------------------------------------------------- 1 | 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | namespace JMS\ObjectRouting\Symfony; 20 | 21 | use JMS\ObjectRouting\RouterInterface; 22 | use Symfony\Component\Routing\Generator\UrlGeneratorInterface; 23 | 24 | /** 25 | * Class Symfony22Adapter 26 | * @package JMS\ObjectRouting\Symfony 27 | * @author Sebastian Kroczek 28 | */ 29 | class Symfony22Adapter implements RouterInterface 30 | { 31 | private $delegate; 32 | 33 | public function __construct(\Symfony\Component\Routing\RouterInterface $router) 34 | { 35 | $this->delegate = $router; 36 | } 37 | 38 | public function generate($name, array $params, $absolute = false) 39 | { 40 | return $this->delegate->generate($name, $params, $absolute ? UrlGeneratorInterface::ABSOLUTE_URL : UrlGeneratorInterface::ABSOLUTE_PATH); 41 | } 42 | } -------------------------------------------------------------------------------- /src/JMS/ObjectRouting/Twig/RoutingExtension.php: -------------------------------------------------------------------------------- 1 | router = $router; 16 | } 17 | 18 | public function getFunctions() 19 | { 20 | return array( 21 | new TwigFunction('object_path', [$this, 'path']), 22 | new TwigFunction('object_url', [$this, 'url']), 23 | ); 24 | } 25 | 26 | public function url($type, $object, array $extraParams = array()) 27 | { 28 | return $this->router->generate($type, $object, true, $extraParams); 29 | } 30 | 31 | public function path($type, $object, array $extraParams = array()) 32 | { 33 | return $this->router->generate($type, $object, false, $extraParams); 34 | } 35 | 36 | public function getName() 37 | { 38 | return 'jms.object_routing'; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /tests/JMS/Tests/ObjectRouting/Metadata/Driver/AnnotationDriverTest.php: -------------------------------------------------------------------------------- 1 | driver->loadMetadataForClass(new \ReflectionClass('JMS\Tests\ObjectRouting\Metadata\Driver\Fixture\BlogPost')); 17 | $this->assertCount(2, $metadata->routes); 18 | 19 | $routes = array( 20 | 'view' => array('name' => 'blog_post_view', 'params' => array('slug' => 'slug')), 21 | 'edit' => array('name' => 'blog_post_edit', 'params' => array('slug' => 'slug')), 22 | ); 23 | $this->assertEquals($routes, $metadata->routes); 24 | } 25 | 26 | public function testLoadReturnsNullWhenNoRoutes() 27 | { 28 | $this->assertNull($this->driver->loadMetadataForClass(new \ReflectionClass('stdClass'))); 29 | } 30 | 31 | protected function setUp(): void 32 | { 33 | $this->driver = new AnnotationDriver(new AnnotationReader()); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /tests/JMS/Tests/ObjectRouting/Metadata/Driver/Fixture/BlogPost.php: -------------------------------------------------------------------------------- 1 | slug = $slug; 22 | } 23 | 24 | public function getSlug() 25 | { 26 | return $this->slug; 27 | } 28 | } -------------------------------------------------------------------------------- /tests/JMS/Tests/ObjectRouting/Metadata/Driver/PhpDriverTest.php: -------------------------------------------------------------------------------- 1 | driver->loadMetadataForClass(new \ReflectionClass('JMS\Tests\ObjectRouting\Metadata\Driver\Fixture\BlogPost')); 17 | $this->assertCount(2, $metadata->routes); 18 | 19 | $routes = array( 20 | 'view' => array('name' => 'blog_post_view', 'params' => array('slug' => 'slug')), 21 | 'edit' => array('name' => 'blog_post_edit', 'params' => array('slug' => 'slug')), 22 | ); 23 | $this->assertEquals($routes, $metadata->routes); 24 | } 25 | 26 | public function testLoadReturnsNullWhenNoRoutes() 27 | { 28 | $this->assertNull($this->driver->loadMetadataForClass(new \ReflectionClass('stdClass'))); 29 | } 30 | 31 | protected function setUp(): void 32 | { 33 | $this->driver = new PhpDriver(new FileLocator(array('' => realpath(__DIR__.'/../../Resources/config')))); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /tests/JMS/Tests/ObjectRouting/Metadata/Driver/XmlDriverTest.php: -------------------------------------------------------------------------------- 1 | driver->loadMetadataForClass(new \ReflectionClass('JMS\Tests\ObjectRouting\Metadata\Driver\Fixture\BlogPost')); 19 | $this->assertCount(2, $metadata->routes); 20 | 21 | $routes = array( 22 | 'view' => array('name' => 'blog_post_view', 'params' => array('slug' => 'slug')), 23 | 'edit' => array('name' => 'blog_post_edit', 'params' => array('slug' => 'slug')), 24 | ); 25 | $this->assertEquals($routes, $metadata->routes); 26 | } 27 | 28 | public function testLoadReturnsNullWhenNoRoutes() 29 | { 30 | $this->assertNull($this->driver->loadMetadataForClass(new \ReflectionClass('stdClass'))); 31 | } 32 | 33 | protected function setUp(): void 34 | { 35 | $this->driver = new XmlDriver(new FileLocator(array('' => realpath(__DIR__.'/../../Resources/config')))); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /tests/JMS/Tests/ObjectRouting/Metadata/Driver/YamlDriverTest.php: -------------------------------------------------------------------------------- 1 | driver->loadMetadataForClass(new \ReflectionClass('JMS\Tests\ObjectRouting\Metadata\Driver\Fixture\BlogPost')); 19 | $this->assertCount(2, $metadata->routes); 20 | 21 | $routes = array( 22 | 'view' => array('name' => 'blog_post_view', 'params' => array('slug' => 'slug')), 23 | 'edit' => array('name' => 'blog_post_edit', 'params' => array('slug' => 'slug')), 24 | ); 25 | $this->assertEquals($routes, $metadata->routes); 26 | } 27 | 28 | public function testLoadReturnsNullWhenNoRoutes() 29 | { 30 | $this->assertNull($this->driver->loadMetadataForClass(new \ReflectionClass('stdClass'))); 31 | } 32 | 33 | protected function setUp(): void 34 | { 35 | $this->driver = new YamlDriver(new FileLocator(array('' => realpath(__DIR__.'/../../Resources/config')))); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /tests/JMS/Tests/ObjectRouting/ObjectRouterTest.php: -------------------------------------------------------------------------------- 1 | addRoute('view', 'view_name'); 24 | 25 | $this->factory->expects($this->once()) 26 | ->method('getMetadataForClass') 27 | ->with('stdClass') 28 | ->will($this->returnValue($metadata)); 29 | 30 | $this->adapter->expects($this->once()) 31 | ->method('generate') 32 | ->with('view_name', array(), false) 33 | ->will($this->returnValue('/foo')); 34 | 35 | $this->assertEquals('/foo', $this->router->generate('view', new \stdClass)); 36 | } 37 | 38 | public function testGenerateWithParams() 39 | { 40 | $metadata = new ClassMetadata('stdClass'); 41 | $metadata->addRoute('view', 'view_name', array('foo' => 'bar')); 42 | 43 | $object = new \stdClass; 44 | $object->bar = 'baz'; 45 | 46 | $this->factory->expects($this->once()) 47 | ->method('getMetadataForClass') 48 | ->will($this->returnValue($metadata)); 49 | 50 | $this->adapter->expects($this->once()) 51 | ->method('generate') 52 | ->with('view_name', array('foo' => 'baz'), false) 53 | ->will($this->returnValue('/foobar')); 54 | 55 | $this->assertEquals('/foobar', $this->router->generate('view', $object)); 56 | } 57 | 58 | public function testGenerateNonExistentType() 59 | { 60 | $this->expectException(\RuntimeException::class); 61 | $this->expectExceptionMessage('The object of class "stdClass" has no route with type "foo". Available types: view'); 62 | 63 | $metadata = new ClassMetadata('stdClass'); 64 | $metadata->addRoute('view', 'view_name'); 65 | 66 | $this->factory->expects($this->once()) 67 | ->method('getMetadataForClass') 68 | ->will($this->returnValue($metadata)); 69 | 70 | $this->router->generate('foo', new \stdClass); 71 | } 72 | 73 | public function testGenerateNoMetadata() 74 | { 75 | $this->expectException(\RuntimeException::class); 76 | $this->expectExceptionMessage('There were no object routes defined for class "stdClass".'); 77 | 78 | $this->factory->expects($this->once()) 79 | ->method('getMetadataForClass') 80 | ->will($this->returnValue(null)); 81 | 82 | $this->router->generate('foo', new \stdClass); 83 | } 84 | 85 | protected function setUp(): void 86 | { 87 | $this->router = new ObjectRouter( 88 | $this->adapter = $this->getMockBuilder(RouterInterface::class)->getMock(), 89 | $this->factory = $this->getMockBuilder(MetadataFactoryInterface::class)->getMock() 90 | ); 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /tests/JMS/Tests/ObjectRouting/Resources/config/JMS.Tests.ObjectRouting.Metadata.Driver.Fixture.BlogPost.php: -------------------------------------------------------------------------------- 1 | addRoute('view', 'blog_post_view', array('slug' => 'slug')); 6 | $metadata->addRoute('edit', 'blog_post_edit', array('slug' => 'slug')); 7 | 8 | return $metadata; -------------------------------------------------------------------------------- /tests/JMS/Tests/ObjectRouting/Resources/config/JMS.Tests.ObjectRouting.Metadata.Driver.Fixture.BlogPost.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | slug 6 | 7 | 8 | slug 9 | 10 | 11 | -------------------------------------------------------------------------------- /tests/JMS/Tests/ObjectRouting/Resources/config/JMS.Tests.ObjectRouting.Metadata.Driver.Fixture.BlogPost.yml: -------------------------------------------------------------------------------- 1 | JMS\Tests\ObjectRouting\Metadata\Driver\Fixture\BlogPost: 2 | view: 3 | name: "blog_post_view" 4 | params: 5 | slug: "slug" 6 | edit: 7 | name: "blog_post_edit" 8 | params: 9 | slug: "slug" 10 | -------------------------------------------------------------------------------- /tests/JMS/Tests/ObjectRouting/Symfony/Symfony21AdapterTest.php: -------------------------------------------------------------------------------- 1 | router->expects($this->once()) 18 | ->method('generate') 19 | ->with('foo', array('bar' => 'baz'), true) 20 | ->will($this->returnValue('/foo-bar-baz')); 21 | 22 | $this->assertEquals('/foo-bar-baz', $this->adapter->generate('foo', array('bar' => 'baz'), true)); 23 | } 24 | 25 | protected function setUp(): void 26 | { 27 | $this->adapter = new Symfony21Adapter( 28 | $this->router = $this->getMockBuilder(RouterInterface::class)->getMock() 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /tests/JMS/Tests/ObjectRouting/Symfony/Symfony22AdapterTest.php: -------------------------------------------------------------------------------- 1 | markTestSkipped('Skipping this test because required constant UrlGeneratorInterface::ABSOLUTE_URL is not defined.'); 20 | } 21 | $this->router->expects($this->once()) 22 | ->method('generate') 23 | ->with('foo', array('bar' => 'baz'), UrlGeneratorInterface::ABSOLUTE_URL) 24 | ->will($this->returnValue('/foo-bar-baz')); 25 | 26 | $this->assertEquals('/foo-bar-baz', $this->adapter->generate('foo', array('bar' => 'baz'), true)); 27 | } 28 | 29 | protected function setUp(): void 30 | { 31 | $this->adapter = new Symfony22Adapter( 32 | $this->router = $this->getMockBuilder(RouterInterface::class)->getMock() 33 | ); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /tests/bootstrap.php: -------------------------------------------------------------------------------- 1 |