Skip to content

Commit

Permalink
forgot some files
Browse files Browse the repository at this point in the history
  • Loading branch information
aembler committed May 6, 2024
1 parent 1c71cd9 commit 96af1e6
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
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'))
)
];
}


}
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');

}
}

0 comments on commit 96af1e6

Please sign in to comment.