1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-19 11:21:30 +02:00

Flextype Core: Markdown parser #212 #186

- Add Markdown service to Flextype container
This commit is contained in:
Awilum
2019-08-11 16:50:48 +03:00
parent 19770a375f
commit ce471d9b9a

View File

@@ -33,6 +33,7 @@ use League\Glide\Responses\SlimResponseFactory;
use League\Glide\ServerFactory;
use Monolog\Handler\StreamHandler;
use Monolog\Logger;
use ParsedownExtra as Markdown;
use Slim\Csrf\Guard;
use Slim\Flash\Messages;
use Slim\Http\Environment;
@@ -179,6 +180,13 @@ $flextype['shortcodes'] = static function ($container) {
return new ShortcodeFacade();
};
/**
* Add Markdown service to Flextype container
*/
$flextype['markdown'] = static function ($container) {
return new Markdown();
};
/**
* Add entries service to Flextype container
*/