Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove sensio generator #5797

Merged
merged 6 commits into from
Dec 20, 2019
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"require-dev": {
"jms/translation-bundle": "^1.4",
"matthiasnoback/symfony-dependency-injection-test": "^3.1",
"sensio/generator-bundle": "^3.1",
"sonata-project/intl-bundle": "^2.4",
"symfony/browser-kit": "^3.4 || ^4.2",
"symfony/filesystem": "^3.4.30 || ^4.2",
Expand All @@ -76,7 +75,6 @@
"suggest": {
"jms/translation-bundle": "Extract message keys from Admins",
"kunicmarko/sonata-auto-configure-bundle": "Auto configures Admin classes",
"sensio/generator-bundle": "Add sonata:admin:generate command",
"sonata-project/intl-bundle": "Add localized date and number into the list"
},
"config": {
Expand Down
31 changes: 0 additions & 31 deletions docs/reference/console.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ SonataAdminBundle provides the following console commands:

* ``cache:create-cache-class``
* ``make:sonata:admin``
* ``sonata:admin:generate``
* ``sonata:admin:list``
* ``sonata:admin:explain``
* ``sonata:admin:setup-acl``
Expand Down Expand Up @@ -51,36 +50,6 @@ Options Description

$ bin/console make:sonata:admin App/Entity/Foo

sonata:admin:generate
---------------------

The ``sonata:admin:generate`` command generates a new Admin class based on the given model
class, registers it as a service and potentially creates a new controller.
As an argument you need to specify the fully qualified model class.
All passed arguments and options are used as default values in interactive mode.
You can disable the interactive mode with ``--no-interaction`` option.

The command requires the SensioGeneratorBundle_ to work. If you don't already have it, you can install it with :

.. code-block:: bash

composer require sensio/generator-bundle --dev

=============== ===============================================================================================================================
Options Description
=============== ===============================================================================================================================
**bundle** the bundle name (the default value is determined by the given model class, e.g. "App" or "YourNSFooBundle")
**admin** the admin class basename (by default this adds "Admin" to the model class name, e.g. "BarAdmin")
**controller** the controller class basename (by default this adds "AdminController" to the model class name, e.g. "BarAdminController")
**manager** the model manager type (by default this is the first registered model manager type, e.g. "orm")
**services** the services YAML file (the default value is "services.yaml")
**id** the admin service ID (the default value is combination of the bundle name and admin class basename like "your_ns_foo.admin.bar")
=============== ===============================================================================================================================

.. code-block:: bash

bin/console sonata:admin:generate App/Entity/Foo

sonata:admin:list
-----------------

Expand Down
83 changes: 0 additions & 83 deletions src/Command/CreateClassCacheCommand.php

This file was deleted.

Loading