-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update: add support for Pimcore 11 (#30)
* update: add support for Pimcore 11 * update Pimcore requirement to ^10.5 * ci: remove PHP 8.2 + lowest from test matrix
- Loading branch information
1 parent
e3ed5d8
commit e1ad411
Showing
10 changed files
with
80 additions
and
45 deletions.
There are no files selected for viewing
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
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
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
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
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
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 |
---|---|---|
@@ -1,19 +1,23 @@ | ||
services: | ||
_defaults: | ||
autowire: true | ||
autoconfigure: true | ||
bind: | ||
$revealJsPublicPath: '/bundles/neustapimcorepresentation/reveal.js-master' | ||
_defaults: | ||
autowire: true | ||
autoconfigure: true | ||
bind: | ||
$revealJsPublicPath: '/bundles/neustapimcorepresentation/reveal.js-master' | ||
|
||
Neusta\Pimcore\PresentationBundle\Controller\: | ||
resource: '../src/Controller' | ||
public: true | ||
tags: ['controller.service_arguments'] | ||
Neusta\Pimcore\PresentationBundle\Controller\: | ||
resource: '../src/Controller' | ||
public: true | ||
tags: [ 'controller.service_arguments' ] | ||
|
||
Neusta\Pimcore\PresentationBundle\Renderer\SimplePresentationRenderer: ~ | ||
Neusta\Pimcore\PresentationBundle\Renderer\PresentationRenderer: | ||
alias: Neusta\Pimcore\PresentationBundle\Renderer\SimplePresentationRenderer | ||
Neusta\Pimcore\PresentationBundle\Renderer\SimpleSlideRenderer: ~ | ||
Neusta\Pimcore\PresentationBundle\Renderer\SlideRenderer: | ||
alias: Neusta\Pimcore\PresentationBundle\Renderer\SimpleSlideRenderer | ||
Neusta\Pimcore\PresentationBundle\Twig\PresentationExtension: ~ | ||
Neusta\Pimcore\PresentationBundle\EventListener\: | ||
resource: '../src/EventListener' | ||
tags: [ 'kernel.event_listener' ] | ||
|
||
Neusta\Pimcore\PresentationBundle\Renderer\SimplePresentationRenderer: ~ | ||
Neusta\Pimcore\PresentationBundle\Renderer\PresentationRenderer: | ||
alias: Neusta\Pimcore\PresentationBundle\Renderer\SimplePresentationRenderer | ||
Neusta\Pimcore\PresentationBundle\Renderer\SimpleSlideRenderer: ~ | ||
Neusta\Pimcore\PresentationBundle\Renderer\SlideRenderer: | ||
alias: Neusta\Pimcore\PresentationBundle\Renderer\SimpleSlideRenderer | ||
Neusta\Pimcore\PresentationBundle\Twig\PresentationExtension: ~ |
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,24 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace Neusta\Pimcore\PresentationBundle\EventListener; | ||
|
||
use Pimcore\Event\BundleManager\PathsEvent; | ||
use Pimcore\Event\BundleManagerEvents; | ||
use Symfony\Component\EventDispatcher\EventSubscriberInterface; | ||
|
||
class AdminAssetsListener implements EventSubscriberInterface | ||
{ | ||
public static function getSubscribedEvents(): array | ||
{ | ||
return [ | ||
BundleManagerEvents::JS_PATHS => 'onJsPaths', | ||
]; | ||
} | ||
|
||
public function onJsPaths(PathsEvent $event): void | ||
{ | ||
$event->setPaths(array_merge($event->getPaths(), [ | ||
'/bundles/presentation/js/pimcore/startup.js', | ||
])); | ||
} | ||
} |
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
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
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