Beispiel #1
0
 /**
  * {@inheritdoc}
  */
 public function process(ContextInterface $context)
 {
     /** @var Context $context */
     $version = $context->getVersion();
     if (null === $version) {
         $context->setVersion(Version::LATEST);
     } elseif (0 === strpos($version, 'v')) {
         $context->setVersion(substr($version, 1));
     }
 }