mirror of
https://github.com/flextype/flextype.git
synced 2025-08-19 11:21:30 +02:00
- Add Markdown service to Flextype container
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user