diff --git a/api/composer.json b/api/composer.json index 0e20ae21..d04d452a 100644 --- a/api/composer.json +++ b/api/composer.json @@ -8,7 +8,9 @@ "api-platform/api-pack": "^1.1", "conduction/commongroundbundle": "dev-master", "doctrine/doctrine-fixtures-bundle": "^3.2", + "doctrine/rst-parser": "^0.1.0", "guzzlehttp/guzzle": "^6.3", + "knplabs/knp-markdown-bundle": "^1.8", "lexik/jwt-authentication-bundle": "^2.6", "phpdocumentor/reflection-docblock": "^4.3", "ramsey/uuid": "^3.8", diff --git a/api/composer.lock b/api/composer.lock index ea7b8f6f..10b82808 100644 --- a/api/composer.lock +++ b/api/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "6dedf18848d212df8a091e39a77494e7", + "content-hash": "48af4cac3c2eac2289e6cf339b11a6ea", "packages": [ { "name": "api-platform/api-pack", @@ -1604,6 +1604,69 @@ ], "time": "2018-06-14T14:45:07+00:00" }, + { + "name": "doctrine/rst-parser", + "version": "0.1.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/rst-parser.git", + "reference": "49ea41cf15b93c4ac493df3f05c49999ef661cd4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/rst-parser/zipball/49ea41cf15b93c4ac493df3f05c49999ef661cd4", + "reference": "49ea41cf15b93c4ac493df3f05c49999ef661cd4", + "shasum": "" + }, + "require": { + "doctrine/event-manager": "^1.0", + "php": "^7.1", + "symfony/filesystem": "^4.1", + "twig/twig": "^2.5" + }, + "require-dev": { + "doctrine/coding-standard": "^6.0", + "gajus/dindent": "^2.0.2", + "phpstan/phpstan": "^0.10", + "phpstan/phpstan-deprecation-rules": "^0.10", + "phpstan/phpstan-phpunit": "^0.10", + "phpstan/phpstan-strict-rules": "^0.10", + "phpunit/phpunit": "^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\RST\\": "lib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Grégoire Passault", + "email": "g.passault@gmail.com", + "homepage": "http://www.gregwar.com/" + }, + { + "name": "Jonathan H. Wage", + "email": "jonwage@gmail.com", + "homepage": "https://jwage.com" + } + ], + "description": "PHP library to parse reStructuredText documents and generate HTML or LaTeX documents.", + "homepage": "https://github.com/doctrine/rst-parser", + "keywords": [ + "html", + "latex", + "markup", + "parser", + "reStructuredText", + "rst" + ], + "time": "2019-04-15T19:55:14+00:00" + }, { "name": "easyrdf/easyrdf", "version": "0.9.1", @@ -2133,6 +2196,69 @@ ], "time": "2014-01-12T16:20:24+00:00" }, + { + "name": "knplabs/knp-markdown-bundle", + "version": "1.8.1", + "source": { + "type": "git", + "url": "https://github.com/KnpLabs/KnpMarkdownBundle.git", + "reference": "7238cc264eab9c42d1a5b71950b55fe3dd78ab38" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/KnpLabs/KnpMarkdownBundle/zipball/7238cc264eab9c42d1a5b71950b55fe3dd78ab38", + "reference": "7238cc264eab9c42d1a5b71950b55fe3dd78ab38", + "shasum": "" + }, + "require": { + "michelf/php-markdown": "~1.4", + "php": "^7.1.3", + "symfony/dependency-injection": "~3.4|^4.0|^5.0", + "symfony/framework-bundle": "~3.4|^4.0|^5.0" + }, + "require-dev": { + "symfony/phpunit-bridge": "^4.4.0 || ^5.0", + "symfony/templating": "~3.4|^4.0|^5.0" + }, + "suggest": { + "ext-sundown": "to use optional support for php-sundown extension instead of php implementation", + "symfony/twig-bundle": "to use the Twig markdown filter" + }, + "type": "symfony-bundle", + "extra": { + "branch-alias": { + "dev-master": "1.5.x-dev" + } + }, + "autoload": { + "psr-4": { + "Knp\\Bundle\\MarkdownBundle\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "KnpLabs Team", + "homepage": "http://knplabs.com" + }, + { + "name": "Symfony Community", + "homepage": "http://github.com/KnpLabs/KnpMarkdownBundle/contributors" + } + ], + "description": "Knplabs markdown bundle transforms markdown into html", + "homepage": "http://github.com/KnpLabs/KnpMarkdownBundle", + "keywords": [ + "bundle", + "knp", + "knplabs", + "markdown" + ], + "time": "2019-11-26T13:18:52+00:00" + }, { "name": "lcobucci/jwt", "version": "3.3.1", @@ -2348,6 +2474,55 @@ ], "time": "2019-11-22T14:22:26+00:00" }, + { + "name": "michelf/php-markdown", + "version": "1.9.0", + "source": { + "type": "git", + "url": "https://github.com/michelf/php-markdown.git", + "reference": "c83178d49e372ca967d1a8c77ae4e051b3a3c75c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/michelf/php-markdown/zipball/c83178d49e372ca967d1a8c77ae4e051b3a3c75c", + "reference": "c83178d49e372ca967d1a8c77ae4e051b3a3c75c", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "require-dev": { + "phpunit/phpunit": ">=4.3 <5.8" + }, + "type": "library", + "autoload": { + "psr-4": { + "Michelf\\": "Michelf/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Michel Fortin", + "email": "michel.fortin@michelf.ca", + "homepage": "https://michelf.ca/", + "role": "Developer" + }, + { + "name": "John Gruber", + "homepage": "https://daringfireball.net/" + } + ], + "description": "PHP Markdown", + "homepage": "https://michelf.ca/projects/php-markdown/", + "keywords": [ + "markdown" + ], + "time": "2019-12-02T02:32:27+00:00" + }, { "name": "moneyphp/money", "version": "v1.3.0", diff --git a/api/config/bundles.php b/api/config/bundles.php index aba2fb86..0b350522 100644 --- a/api/config/bundles.php +++ b/api/config/bundles.php @@ -16,4 +16,5 @@ Lexik\Bundle\JWTAuthenticationBundle\LexikJWTAuthenticationBundle::class => ['all' => true], Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle::class => ['all' => true], Tbbc\MoneyBundle\TbbcMoneyBundle::class => ['all' => true], + Knp\Bundle\MarkdownBundle\KnpMarkdownBundle::class => ['all' => true], ]; diff --git a/api/symfony.lock b/api/symfony.lock index 386193f5..e97be40b 100644 --- a/api/symfony.lock +++ b/api/symfony.lock @@ -106,6 +106,9 @@ "doctrine/reflection": { "version": "v1.0.0" }, + "doctrine/rst-parser": { + "version": "0.1.0" + }, "easyrdf/easyrdf": { "version": "0.9.1" }, @@ -139,6 +142,9 @@ "jdorn/sql-formatter": { "version": "v1.2.17" }, + "knplabs/knp-markdown-bundle": { + "version": "1.8.1" + }, "lcobucci/jwt": { "version": "3.3.1" }, @@ -157,6 +163,9 @@ "config/packages/lexik_jwt_authentication.yaml" ] }, + "michelf/php-markdown": { + "version": "1.9.0" + }, "moneyphp/money": { "version": "v1.3.0" },