summaryrefslogtreecommitdiff
path: root/vendor/league/commonmark
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2020-04-05 18:03:28 +0100
committerGreg Roach <greg@subaqua.co.uk>2020-04-05 18:03:28 +0100
commite5b0797c4afa759a600669aba378a6194f398199 (patch)
tree576d1e5cfaa65ce080b015a8ea4a300b21935e5d /vendor/league/commonmark
parent154f55eea1eca9a3973bcaf0e639a0ea289fb188 (diff)
downloadwebtrees-e5b0797c4afa759a600669aba378a6194f398199.tar.gz
webtrees-e5b0797c4afa759a600669aba378a6194f398199.tar.bz2
webtrees-e5b0797c4afa759a600669aba378a6194f398199.zip
Update dependencies
Diffstat (limited to 'vendor/league/commonmark')
-rw-r--r--vendor/league/commonmark/CHANGELOG.md9
-rw-r--r--vendor/league/commonmark/src/CommonMarkConverter.php2
-rw-r--r--vendor/league/commonmark/src/Environment.php4
3 files changed, 13 insertions, 2 deletions
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;
}