This file describes the step to follow in order to migrate your projects to Redaktilo 3.0.
The changes done in 3.0 can be found in CHANGELOG.
Here's a list of features removed, with their replacement:
Editor#has
has been removed, useEditor#hasBelow
insteadLineReplaceCommand
no longer accepts strings, useText#setLine
instead
The following commands now takes a TextSanitizer
and a LocationSanitizer
mandatory argument in their constructor:
LineInsertAboveCommand
LineReplaceCommand
LineInsertBelowCommand
LineRemoveCommand
The following exceptions have been removed:
Gnugat\Redaktilo\Command\CommandNotFoundException
Gnugat\Redaktilo\Search\NotSupportedException
Gnugat\Redaktilo\Search\PatternNotFoundException
Gnugat\Redaktilo\InvalidLineNumberException
Gnugat\Redaktilo\Service\DifferentLineBreaksFoundException
Please use their equivalent (same name) from the following namespace:
Gnugat\Redaktilo\Exception
.
The following classes have been removed:
LineNumberSearchStrategy
, useText#setCurrentLineNumber
insteadPhpSearchStrategy
Php/Token
Php/TokenBuilder