-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
concrete/src/Announcement/Controller/Update/Version929Controller.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
namespace Concrete\Core\Announcement\Controller\Update; | ||
|
||
use Concrete\Core\Announcement\Action\LearnMoreAction; | ||
use Concrete\Core\Announcement\Action\VideoAction; | ||
use Concrete\Core\Announcement\Button\LearnMoreButton; | ||
use Concrete\Core\Announcement\Controller\AbstractController; | ||
use Concrete\Core\Announcement\Icon\SvgIcon; | ||
use Concrete\Core\Announcement\Item\StandardItem; | ||
use Concrete\Core\Announcement\Slide\FeatureSlide; | ||
use Concrete\Core\User\User; | ||
|
||
class Version929Controller extends AbstractController | ||
{ | ||
|
||
public function getSlides(User $user): array | ||
{ | ||
return [ | ||
new FeatureSlide( | ||
t('Coming Soon'), [ | ||
new StandardItem( | ||
t('Get ready for the new Marketplace'), | ||
t('The next minor version of Concrete will connect to a new marketplace experience providing high-quality themes, add-ons, and SaaS integrations.'), | ||
), | ||
new StandardItem( | ||
t('Update your existing Add-ons & Themes Now'), | ||
t('Take a quick look to apply any unapplied updates to your current extensions before May 15th.'), | ||
[ | ||
new LearnMoreAction(DIR_REL . '/dashboard/extend/update') | ||
], | ||
), | ||
new StandardItem( | ||
t('9.2.9 Release Notes'), | ||
t('Take a look at the changes that have been applied in the current version of Concrete.'), | ||
[ | ||
new LearnMoreAction('https://documentation.concretecms.org/9-x/developers/introduction/version-history/929-release-notes') | ||
], | ||
), | ||
], | ||
new LearnMoreButton('https://documentation.concretecms.org/9-x/developers/introduction/version-history/929-release-notes', t('View Release Notes')) | ||
) | ||
]; | ||
} | ||
|
||
|
||
} |
21 changes: 21 additions & 0 deletions
21
concrete/src/Updater/Migrations/Migrations/Version20240506191622.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Concrete\Core\Updater\Migrations\Migrations; | ||
|
||
use Concrete\Core\Announcement\AnnouncementService; | ||
use Concrete\Core\Updater\Migrations\RepeatableMigrationInterface; | ||
use Doctrine\DBAL\Schema\Schema; | ||
use Concrete\Core\Updater\Migrations\AbstractMigration; | ||
|
||
final class Version20240506191622 extends AbstractMigration implements RepeatableMigrationInterface | ||
{ | ||
|
||
public function upgradeDatabase() | ||
{ | ||
$service = $this->app->make(AnnouncementService::class); | ||
$service->createAnnouncementIfNotExists('concrete_version_929'); | ||
|
||
} | ||
} |