Browse Source

Renomage du bundle

tags/0.1
Fab 3 years ago
parent
commit
56ba4ea3d4
9 changed files with 15 additions and 15 deletions
  1. +5
    -5
      Controller/Admin/AbstractCrudController.php
  2. +1
    -1
      Controller/Admin/DashboardController.php
  3. +1
    -1
      DependencyInjection/LcSovExtension.php
  4. +1
    -1
      Field/CollectionField.php
  5. +1
    -1
      Field/FileManagerField.php
  6. +1
    -1
      Field/GalleryManagerField.php
  7. +3
    -3
      LcSovBundle.php
  8. +1
    -1
      Resources/views/crud/edit.html.twig
  9. +1
    -1
      Resources/views/crud/new.html.twig

+ 5
- 5
Controller/Admin/AbstractCrudController.php View File

@@ -18,7 +18,7 @@ abstract class AbstractCrudController extends EaAbstractCrudController
{
if (in_array(TranslatableInterface::class, class_implements($this->getEntityFqcn()))) {
$actions->update(Crud::PAGE_INDEX, Action::EDIT, function (Action $action) {
return $action->setTemplatePath('@Sov/crud/action/translatable.html.twig');
return $action->setTemplatePath('@LcSov/crud/action/translatable.html.twig');
});
}

@@ -29,12 +29,12 @@ abstract class AbstractCrudController extends EaAbstractCrudController
{
return $crud
->overrideTemplates([
'crud/edit' => '@Sov/crud/edit.html.twig',
'crud/new' => '@Sov/crud/new.html.twig'
'crud/edit' => '@LcSov/crud/edit.html.twig',
'crud/new' => '@LcSov/crud/new.html.twig'
])
// don't forget to add EasyAdmin's form theme at the end of the list
// (otherwise you'll lose all the styles for the rest of form fields)
->setFormThemes(['@Sov/crud/form_theme.html.twig', '@FOSCKEditor/Form/ckeditor_widget.html.twig']);
->setFormThemes(['@LcSov/crud/form_theme.html.twig', '@FOSCKEditor/Form/ckeditor_widget.html.twig']);
}


@@ -48,7 +48,7 @@ abstract class AbstractCrudController extends EaAbstractCrudController
// the argument of these methods is passed to the asset() Twig function
// CSS assets are added just before the closing </head> element
// and JS assets are added just before the closing </body> element
->addJsFile('bundles/lcadmin/js/utils.js');
->addJsFile('bundles/lc_sov/js/utils.js');
}

/*

+ 1
- 1
Controller/Admin/DashboardController.php View File

@@ -15,7 +15,7 @@ class DashboardController extends AbstractDashboardController

public function index(): Response
{
return $this->render('@Sov/dashboard.html.twig');
return $this->render('@LcSov/dashboard.html.twig');
}

public function configureDashboard(): Dashboard

DependencyInjection/SovExtension.php → DependencyInjection/LcSovExtension.php View File

@@ -9,7 +9,7 @@ use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;


class SovExtension extends Extension implements PrependExtensionInterface
class LcSovExtension extends Extension implements PrependExtensionInterface
{



+ 1
- 1
Field/CollectionField.php View File

@@ -24,7 +24,7 @@ class CollectionField implements FieldInterface
return (new self())
->setProperty($propertyName)
->setLabel($label)
->setTemplatePath('@Sov/crud/field/collection.html.twig')
->setTemplatePath('@LcSov/crud/field/collection.html.twig')
->setFormType(CollectionType::class)
->addCssClass('field-collection')
->addJsFiles('bundles/lcadmin/js/form-type-collection-array.js')

+ 1
- 1
Field/FileManagerField.php View File

@@ -22,7 +22,7 @@ final class FileManagerField implements FieldInterface
return (new self())
->setProperty($propertyName)
->setLabel($label)
->setTemplatePath('@Sov/crud/field/image.html.twig')
->setTemplatePath('@LcSov/crud/field/image.html.twig')
->addJsFiles('bundles/lcadmin/js/form-type-file-manager.js')
->setFormType(FileManagerType::class)
->addCssClass('field-text')

+ 1
- 1
Field/GalleryManagerField.php View File

@@ -24,7 +24,7 @@ class GalleryManagerField implements FieldInterface
return (new self())
->setProperty($propertyName)
->setLabel($label)
->setTemplatePath('@Sov/crud/field/collection.html.twig')
->setTemplatePath('@LcSov/crud/field/collection.html.twig')
->setFormType(CollectionType::class)
->addCssClass('field-collection')
->addJsFiles('bundles/lcadmin/js/form-type-collection.js')

SovBundle.php → LcSovBundle.php View File

@@ -2,14 +2,14 @@

namespace Lc\SovBundle;

use Lc\SovBundle\DependencyInjection\SovExtension;
use Lc\SovBundle\DependencyInjection\LcSovExtension;
use Symfony\Component\HttpKernel\Bundle\Bundle;


class SovBundle extends Bundle
class LcSovBundle extends Bundle
{
public function getContainerExtension()
{
return new SovExtension();
return new LcSovExtension();
}
}

+ 1
- 1
Resources/views/crud/edit.html.twig View File

@@ -4,5 +4,5 @@

{% block body_javascript %}
{{ parent() }}
{% include '@Sov/crud/filemanager/file-manager-modal.html.twig' %}
{% include '@LcSov/crud/filemanager/file-manager-modal.html.twig' %}
{% endblock %}

+ 1
- 1
Resources/views/crud/new.html.twig View File

@@ -4,6 +4,6 @@

{% block body_javascript %}
{{ parent() }}
{% include '@Sov/crud/filemanager/file-manager-modal.html.twig' %}
{% include '@LcSov/crud/filemanager/file-manager-modal.html.twig' %}
{% endblock %}


Loading…
Cancel
Save