Browse Source

Correctif Maker

develop
Guillaume 3 years ago
parent
commit
68187e055b
6 changed files with 12 additions and 7 deletions
  1. +2
    -2
      Maker/RepositoryMaker.php
  2. +0
    -1
      Resources/assets/app/adminlte/field/collection/app.collection.js
  3. +1
    -1
      Resources/maker/repository/repository_query.tpl.php
  4. +3
    -3
      Resources/maker/repository/store.tpl.php
  5. +2
    -0
      Resources/translations/admin.fr.yaml
  6. +4
    -0
      Resources/views/admin/setting/form.html.twig

+ 2
- 2
Maker/RepositoryMaker.php View File

@@ -77,8 +77,8 @@ class RepositoryMaker extends AbstractMaker
$this->generateClass($generator, $storeClass, 'Repository\\', 'store.tpl.php', $options);

// interfaces
$this->generateInterface($input, $generator, $repositoryQueryClass . 'Interface');
$this->generateInterface($input, $generator, $storeClass . 'Interface');
//$this->generateInterface($input, $generator, $repositoryQueryClass . 'Interface');
//$this->generateInterface($input, $generator, $storeClass . 'Interface');

// write files
$generator->writeChanges();

+ 0
- 1
Resources/assets/app/adminlte/field/collection/app.collection.js View File

@@ -7,7 +7,6 @@ $(document).ready(function () {
initCollectionWidget();
});


function initCollectionWidget() {

$('.field-collection[data-prototype]').each(function (i, collectionWidget) {

+ 1
- 1
Resources/maker/repository/repository_query.tpl.php View File

@@ -5,7 +5,7 @@ namespace <?= $namespace_path; ?>\<?= $domain; ?>;
use Knp\Component\Pager\PaginatorInterface;
use Lc\SovBundle\Repository\AbstractRepositoryQuery;

class <?= $class_name ?> extends AbstractRepositoryQuery implements <?= $class_name; ?>Interface
class <?= $class_name ?> extends AbstractRepositoryQuery
{
public function __construct(<?= $class_name_repository; ?> $repository, PaginatorInterface $paginator)
{

+ 3
- 3
Resources/maker/repository/store.tpl.php View File

@@ -2,11 +2,11 @@

namespace <?= $namespace_path; ?>\<?= $domain; ?>;

class <?= $class_name ?> implements <?= $class_name ?>Interface
class <?= $class_name ?>
{
protected <?= $class_name_repository_query ?>Interface $query;
protected <?= $class_name_repository_query ?> $query;

public function __construct(<?= $class_name_repository_query ?>Interface $query)
public function __construct(<?= $class_name_repository_query ?> $query)
{
$this->query = $query;
}

+ 2
- 0
Resources/translations/admin.fr.yaml View File

@@ -120,6 +120,8 @@ entity:
active: Activer
image: Image
date: Date
day: Jour
groupUser: Groupe d'utilisateur

panels:
general: Général

+ 4
- 0
Resources/views/admin/setting/form.html.twig View File

@@ -44,6 +44,10 @@
{% endblock %}
{% endembed %}

{# {% for child in form.settings %}#}
{# {% do child.setRendered() %}#}
{# {% endfor %}#}

{{ form_end(form) }}
{% endblock %}
{% endembed %}

Loading…
Cancel
Save