<?php
namespace Reaze\HeadlessBundle;
use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
use Pimcore\Extension\Bundle\Installer\InstallerInterface;
use Pimcore\Extension\Bundle\Traits\PackageVersionTrait;
use Reaze\HeadlessBundle\Installer\Installer;
/**
* Class ReazeHeadlessBundle
*
* @package Reaze\HeadlessBundle
*/
class ReazeHeadlessBundle extends AbstractPimcoreBundle
{
use PackageVersionTrait;
/**
* @return InstallerInterface
*/
public function getInstaller(): object
{
return $this->container->get(Installer::class);
}
/**
* @return string[]
*/
public function getJsPaths(): array
{
return [
'/bundles/reazeheadless/js/pimcore/startup.js',
'/bundles/reazeheadless/js/pimcore/document/pages/preview.js',
];
}
/**
* @return string[]
*/
public function getEditmodeCssPaths(): array
{
return [
'/bundles/reazeheadless/bootstrap/css/bootstrap.min.css',
];
}
/**
* @return string[]
*/
public function getEditmodeJsPaths(): array
{
return [
'/bundles/reazeheadless/bootstrap/js/bootstrap.min.js',
];
}
/**
* @return string
*/
protected function getComposerPackageName(): string
{
return 'reaze/headless';
}
}