From a495c9fcfd92a58a9ddbcb6a28c23fa3cd3fdb20 Mon Sep 17 00:00:00 2001 From: Wilhelm Behncke Date: Thu, 31 Jan 2019 15:10:24 +0100 Subject: [PATCH] BUGFIX: Adjust for vanderlee/syllable 1.5 --- Classes/Fusion/HyphenateImplementation.php | 6 ++++-- composer.json | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Classes/Fusion/HyphenateImplementation.php b/Classes/Fusion/HyphenateImplementation.php index 8140a20..65f37cb 100644 --- a/Classes/Fusion/HyphenateImplementation.php +++ b/Classes/Fusion/HyphenateImplementation.php @@ -7,6 +7,8 @@ use Neos\Flow\Package\PackageManagerInterface; use Neos\Utility\Files; use Neos\Fusion\FusionObjects\AbstractFusionObject; +use Vanderlee\Syllable\Hyphen; +use Vanderlee\Syllable\Syllable; class HyphenateImplementation extends AbstractFusionObject { @@ -67,12 +69,12 @@ public function evaluate() Files::createDirectoryRecursively($cacheDirectory); - $syllable = new \Syllable($this->getLocale()); + $syllable = new Syllable($this->getLocale()); $syllable->getSource()->setPath($languagesDirectory); $syllable->getCache()->setPath($cacheDirectory); - $syllable->setHyphen(new \Syllable_Hyphen_Soft); + $syllable->setHyphen(new Hyphen\Soft()); $syllable->setMinWordLength($this->getThreshold()); switch ($this->getType()) { diff --git a/composer.json b/composer.json index b6c0532..a931d65 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "description": "Hyphenation for Neos", "type": "neos-package", - "version": "1.1.0", + "version": "1.1.1", "name": "packagefactory/hyphenate", "license": "GPL-3.0", "authors": [ @@ -14,7 +14,7 @@ "require": { "neos/flow": "*", "neos/fusion": "*", - "vanderlee/syllable": "^1.4" + "vanderlee/syllable": "1.5" }, "autoload": { "psr-4": {