Skip to content

Commit

Permalink
Added PimcoreBundleAdminSupportInterface to bundle class
Browse files Browse the repository at this point in the history
  • Loading branch information
Corepex committed Mar 22, 2023
1 parent 4f8a9e4 commit 492b21e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/PimcoreDataHubBundle.php
Expand Up @@ -15,15 +15,18 @@

namespace Pimcore\Bundle\DataHubBundle;

use Pimcore\Bundle\AdminBundle\Support\BundleAdminSupportTrait;
use Pimcore\Bundle\AdminBundle\Support\PimcoreBundleAdminSupportInterface;
use Pimcore\Bundle\DataHubBundle\DependencyInjection\Compiler\CustomDocumentTypePass;
use Pimcore\Bundle\DataHubBundle\DependencyInjection\Compiler\ImportExportLocatorsPass;
use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
use Pimcore\Extension\Bundle\Installer\InstallerInterface;
use Pimcore\Extension\Bundle\Traits\PackageVersionTrait;
use Symfony\Component\DependencyInjection\ContainerBuilder;

class PimcoreDataHubBundle extends AbstractPimcoreBundle
class PimcoreDataHubBundle extends AbstractPimcoreBundle implements PimcoreBundleAdminSupportInterface

Check failure on line 27 in src/PimcoreDataHubBundle.php

View workflow job for this annotation

GitHub Actions / Static Analysis with PHPStan (8.0, lowest)

Class Pimcore\Bundle\DataHubBundle\PimcoreDataHubBundle implements unknown interface Pimcore\Bundle\AdminBundle\Support\PimcoreBundleAdminSupportInterface.
{
use BundleAdminSupportTrait;

Check failure on line 29 in src/PimcoreDataHubBundle.php

View workflow job for this annotation

GitHub Actions / Static Analysis with PHPStan (8.0, lowest)

Class Pimcore\Bundle\DataHubBundle\PimcoreDataHubBundle uses unknown trait Pimcore\Bundle\AdminBundle\Support\BundleAdminSupportTrait.
use PackageVersionTrait;

const RUNTIME_CONTEXT_KEY = 'datahub_context';
Expand Down
1 change: 1 addition & 0 deletions src/Resources/public/js/datahub.js
Expand Up @@ -27,6 +27,7 @@ pimcore.plugin.datahub = Class.create({
document.addEventListener(pimcore.events.pimcoreReady, this.pimcoreReady.bind(this));
}


document.addEventListener("pimcore.perspectiveEditor.permissions.structure.load", (e) => {
if (e.detail.context === 'toolbar') {
e.detail.structure['datahub'] = {};
Expand Down

0 comments on commit 492b21e

Please sign in to comment.