Skip to content

Commit

Permalink
BUGFIX: Adjust for vanderlee/syllable 1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
grebaldi committed Jan 31, 2019
1 parent 0a21110 commit a495c9f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions Classes/Fusion/HyphenateImplementation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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()) {
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand All @@ -14,7 +14,7 @@
"require": {
"neos/flow": "*",
"neos/fusion": "*",
"vanderlee/syllable": "^1.4"
"vanderlee/syllable": "1.5"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit a495c9f

Please sign in to comment.