From 3c0bcf904ec02acb1afd0e23e7c170ac5199fc14 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sun, 26 Feb 2023 14:22:13 +0000 Subject: [PATCH] Release 15.0.0 --- CHANGELOG.md | 8 ++++++++ src/MarkdownServiceProvider.php | 18 +++++++++--------- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index be256e9..c3ad383 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ CHANGE LOG ========== +## V15.0 (26/02/2023) + +* Support Laravel 8-10 only +* Support PHP 7.4-8.2 only +* Added additional types +* Switched to Commonmark ^2.3.9 + + ## V14.0 (30/05/2022) * Dropped PHP < 7.4 diff --git a/src/MarkdownServiceProvider.php b/src/MarkdownServiceProvider.php index 4aafc57..05b4bcb 100644 --- a/src/MarkdownServiceProvider.php +++ b/src/MarkdownServiceProvider.php @@ -59,7 +59,7 @@ public function boot(): void * * @return void */ - protected function setupConfig(): void + private function setupConfig(): void { $source = realpath($raw = __DIR__.'/../config/markdown.php') ?: $raw; @@ -77,7 +77,7 @@ protected function setupConfig(): void * * @return void */ - protected function enableCompiler(): void + private function enableCompiler(): void { $app = $this->app; @@ -95,7 +95,7 @@ protected function enableCompiler(): void * * @return void */ - protected function enablePhpEngine(): void + private function enablePhpEngine(): void { $app = $this->app; @@ -114,7 +114,7 @@ protected function enablePhpEngine(): void * * @return void */ - protected function enableBladeEngine(): void + private function enableBladeEngine(): void { $app = $this->app; @@ -129,7 +129,7 @@ protected function enableBladeEngine(): void $app->view->addExtension('md.blade.php', 'blademd'); } - protected function enableBladeDirective(): void + private function enableBladeDirective(): void { $app = $this->app; @@ -164,7 +164,7 @@ public function register(): void * * @return void */ - protected function registerEnvironment(): void + private function registerEnvironment(): void { $this->app->singleton('markdown.environment', function (Container $app): Environment { $config = $app->config->get('markdown'); @@ -188,7 +188,7 @@ protected function registerEnvironment(): void * * @return void */ - protected function registerMarkdown(): void + private function registerMarkdown(): void { $this->app->singleton('markdown.converter', function (Container $app): MarkdownConverter { $environment = $app['markdown.environment']; @@ -205,7 +205,7 @@ protected function registerMarkdown(): void * * @return void */ - protected function registerCompiler(): void + private function registerCompiler(): void { $this->app->singleton('markdown.compiler', function (Container $app): CommonMarkCompiler { $converter = $app['markdown.converter']; @@ -223,7 +223,7 @@ protected function registerCompiler(): void * * @return void */ - protected function registerDirective(): void + private function registerDirective(): void { $this->app->singleton('markdown.directive', function (Container $app): CommonMarkDirective { $converter = $app['markdown.converter'];