diff --git a/composer.json b/composer.json index 12fd41c..668401b 100644 --- a/composer.json +++ b/composer.json @@ -13,6 +13,6 @@ "source": "http://cgit.drupalcode.org/taarikh" }, "require": { - "hussainweb/date-converter": "1.x-dev" + "hussainweb/date-converter": "^1.0" } } diff --git a/src/Plugin/TaarikhAlgorithm/FatimidAstronomical.php b/src/Plugin/TaarikhAlgorithm/FatimidAstronomical.php index cbc85d3..2625480 100644 --- a/src/Plugin/TaarikhAlgorithm/FatimidAstronomical.php +++ b/src/Plugin/TaarikhAlgorithm/FatimidAstronomical.php @@ -12,9 +12,7 @@ use Drupal\taarikh\TaarikhAlgorithmPluginInterface; * @TaarikhAlgorithm( * id = "fatimid_astronomical", * title = @Translation("Fatimid Astronomical")), - * class = "Hussainweb\DateConverter\Strategy\Algorithm\Hijri\HijriFatimidAstronomical" + * class = "Hussainweb\DateConverter\Algorithm\Hijri\HijriFatimidAstronomical" * ) */ -class FatimidAstronomical extends TaarikhAlgorithmPluginBase implements TaarikhAlgorithmPluginInterface { - -} +class FatimidAstronomical extends TaarikhAlgorithmPluginBase implements TaarikhAlgorithmPluginInterface { } diff --git a/src/Plugin/TaarikhAlgorithm/TaarikhAlgorithmPluginBase.php b/src/Plugin/TaarikhAlgorithm/TaarikhAlgorithmPluginBase.php index 7aad0e9..22c6a95 100644 --- a/src/Plugin/TaarikhAlgorithm/TaarikhAlgorithmPluginBase.php +++ b/src/Plugin/TaarikhAlgorithm/TaarikhAlgorithmPluginBase.php @@ -5,7 +5,6 @@ namespace Drupal\taarikh\Plugin\TaarikhAlgorithm; use Drupal\Core\Datetime\DrupalDateTime; use Drupal\Core\Plugin\PluginBase; use Drupal\taarikh\TaarikhAlgorithmPluginInterface; -use Hussainweb\DateConverter\Strategy\The; use Hussainweb\DateConverter\Value\DateInterface; /** @@ -16,7 +15,7 @@ abstract class TaarikhAlgorithmPluginBase extends PluginBase implements TaarikhA /** * The decorated algorithm. * - * @var \Hussainweb\DateConverter\Strategy\AlgorithmInterface + * @var \Hussainweb\DateConverter\Algorithm\AlgorithmInterface */ protected $algorithm;