Backward Compatibility breaks in 2.0
This file describes the step to follow in order to migrate your projects to Redaktilo 2.0.
The changes done in 2.0 can be found in CHANGELOG.
Misc (1.1)
Here's a list of features removed, with their replacement:
Editor#hashas been removed, useEditor#hasBelowinsteadLineReplaceCommandno longer accepts strings, useText#setLineinstead
Sanitizers (1.2)
The following commands now takes a TextSanitizer and a LocationSanitizer
mandatory argument in their constructor:
LineInsertAboveCommandLineReplaceCommandLineInsertBelowCommandLineRemoveCommand
Exceptions (1.4)
The following exceptions have been removed:
Gnugat\Redaktilo\Command\CommandNotFoundExceptionGnugat\Redaktilo\Search\NotSupportedExceptionGnugat\Redaktilo\Search\PatternNotFoundExceptionGnugat\Redaktilo\InvalidLineNumberExceptionGnugat\Redaktilo\Service\DifferentLineBreaksFoundException
Please use their equivalent (same name) from the following namespace:
Gnugat\Redaktilo\Exception.
PHP and Number Search Removal (1.7)
The following classes have been removed:
LineNumberSearchStrategy, useText#setCurrentLineNumberinsteadPhpSearchStrategyPhp/TokenPhp/TokenBuilder