ソースを参照

Correctif Maker

feature/symfony6.1
Guillaume 3年前
コミット
68187e055b
6個のファイルの変更12行の追加7行の削除
  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 ファイルの表示

@@ -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 ファイルの表示

@@ -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 ファイルの表示

@@ -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 ファイルの表示

@@ -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 ファイルの表示

@@ -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 ファイルの表示

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

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

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

読み込み中…
キャンセル
保存