From e5b0797c4afa759a600669aba378a6194f398199 Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Sun, 5 Apr 2020 18:03:28 +0100 Subject: Update dependencies --- vendor/league/commonmark/CHANGELOG.md | 9 ++++++++- vendor/league/commonmark/src/CommonMarkConverter.php | 2 +- vendor/league/commonmark/src/Environment.php | 4 ++++ 3 files changed, 13 insertions(+), 2 deletions(-) (limited to 'vendor/league/commonmark') diff --git a/vendor/league/commonmark/CHANGELOG.md b/vendor/league/commonmark/CHANGELOG.md index 4ee836d4d6..4d93c183f7 100644 --- a/vendor/league/commonmark/CHANGELOG.md +++ b/vendor/league/commonmark/CHANGELOG.md @@ -4,6 +4,12 @@ Updates should follow the [Keep a CHANGELOG](https://keepachangelog.com/) princi ## [Unreleased][unreleased] +## [1.3.3] - 2020-04-05 + +### Fixed + + - Fixed event listeners not having the environment or configuration injected if they implemented the `EnvironmentAwareInterface` or `ConfigurationAwareInterface` (#423) + ## [1.3.2] - 2020-03-25 ### Fixed @@ -231,7 +237,8 @@ No changes were made since 1.0.0-rc1. - Removed `DelimiterStack::iterateByCharacters()` (use the new `processDelimiters()` method instead) - Removed the protected `DelimiterStack::findMatchingOpener()` method -[unreleased]: https://github.com/thephpleague/commonmark/compare/1.3.2...HEAD +[unreleased]: https://github.com/thephpleague/commonmark/compare/1.3.3...HEAD +[1.3.3]: https://github.com/thephpleague/commonmark/compare/1.3.2...1.3.3 [1.3.2]: https://github.com/thephpleague/commonmark/compare/1.3.1...1.3.2 [1.3.1]: https://github.com/thephpleague/commonmark/compare/1.3.0...1.3.1 [1.3.0]: https://github.com/thephpleague/commonmark/compare/1.2.2...1.3.0 diff --git a/vendor/league/commonmark/src/CommonMarkConverter.php b/vendor/league/commonmark/src/CommonMarkConverter.php index deefe66679..c10f684391 100644 --- a/vendor/league/commonmark/src/CommonMarkConverter.php +++ b/vendor/league/commonmark/src/CommonMarkConverter.php @@ -24,7 +24,7 @@ class CommonMarkConverter extends Converter * * This might be a typical `x.y.z` version, or `x.y-dev`. */ - public const VERSION = '1.3.2'; + public const VERSION = '1.3.3'; /** @var EnvironmentInterface */ protected $environment; diff --git a/vendor/league/commonmark/src/Environment.php b/vendor/league/commonmark/src/Environment.php index 69984a913f..c4ad5bde09 100644 --- a/vendor/league/commonmark/src/Environment.php +++ b/vendor/league/commonmark/src/Environment.php @@ -381,6 +381,10 @@ final class Environment implements ConfigurableEnvironmentInterface $this->listeners[$eventClass]->add($listener, $priority); + if (\is_object($listener)) { + $this->injectEnvironmentAndConfigurationIfNeeded($listener); + } + return $this; } -- cgit v1.3