Skip to content

Commit

Permalink
Updated release cycle for Yii2
Browse files Browse the repository at this point in the history
Copied release cycle info from yiisoft/yii2#20142
  • Loading branch information
rhertogh committed Jun 2, 2024
1 parent 3104c2e commit 9a51b16
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
18 changes: 15 additions & 3 deletions config/release-cycle.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,22 @@
'3.x' => [
'php' => '>=8.0.0'
],
'2.0' => [
'2.2.x' => [
'php' => '>=8.1.0'
],
'>= 2.0.50' => [
'release' => '2024-05-30',
'enhancements' => '2024-05-30',
'bugfixes' => '2026-11-23',
'eol' => '2027-11-23',
'php' => '>= 7.3, <= 8.4'
],
'<= 2.0.49.x' => [
'release' => '2014-10-12',
'enhancements' => '2018-02-19',
'php' => '>=5.4.0'
'enhancements' => '2023-08-29',
'bugfixes' => '2023-10-31',
'eol' => '2026-11-23',
'php' => '>= 5.4, <= 8.3'
],
'1.1' => [
'release' => '2010-01-10',
Expand Down
4 changes: 2 additions & 2 deletions widgets/VersionCalendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class VersionCalendar extends Widget
{
public $versions = [];

private $marginLeft = 80;
private $marginLeft = 100;
private $marginRight = 50;
private $headerHeight = 24;
private $yearWidth = 120;
Expand Down Expand Up @@ -96,4 +96,4 @@ public function getBranchSupportState($version)

return 'future';
}
}
}
4 changes: 2 additions & 2 deletions widgets/views/versionCalendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@
<g class="branch-labels">
<?php foreach ($versions as $branch => $version): ?>
<g class="<?= $widget->getBranchSupportState($version) ?>">
<rect x="0" y="<?= $version['top'] ?>" width="<?= 0.5 * $marginLeft ?>" height="<?= $branchHeight ?>" />
<text x="<?= 0.25 * $marginLeft ?>" y="<?= $version['top'] + (0.5 * $branchHeight) ?>">
<rect x="0" y="<?= $version['top'] ?>" width="<?= 0.85 * $marginLeft ?>" height="<?= $branchHeight ?>" />
<text x="<?= 0.42 * $marginLeft ?>" y="<?= $version['top'] + (0.5 * $branchHeight) ?>">
<?= Html::encode($branch) ?>
</text>
</g>
Expand Down

0 comments on commit 9a51b16

Please sign in to comment.