PHPackages                             survos/maker-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. survos/maker-bundle

Abandoned → [survos/code-bundle](/?search=survos%2Fcode-bundle)Symfony-bundle[Admin Panels](/categories/admin)

survos/maker-bundle
===================

Tools to generate controllers and templates for the admin interface

1.6.44(11mo ago)42.7kMITPHPPHP ^8.3

Since Jun 8Pushed 10mo ago2 watchersCompare

[ Source](https://github.com/survos/SurvosMakerBundle)[ Packagist](https://packagist.org/packages/survos/maker-bundle)[ GitHub Sponsors](https://github.com/kbond)[ RSS](/packages/survos-maker-bundle/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (28)Versions (737)Used By (0)

Survos Maker Bundle
===================

[](#survos-maker-bundle)

Some alternatives to the Symfony maker commands.

survos:make:controller
----------------------

[](#survosmakecontroller)

The Symfony make:controller command is very limited. It creates a file and template, but doesn't give the option to set the route or method name, just app\_app and index.html.twig.

The survos:make:controller command allows creating a Controller class and individual controller methods.

```
bin/console survos:make:controller-class Admin \
  --inject "App\\Repository\\UserRepository"
  --route="admin_list_users"
  --method="listUsers"
  --security="IsGranted('ROLE_ADMIN')"
```

Sigh. Most of this is outdated and needs to be cleaned up. Sorry.

Special note about survos:make:bundle
-------------------------------------

[](#special-note-about-survosmakebundle)

Creating a bundle only works within survos. In fact, it probably shouldn't even be in the maker-bundle because of this restriction, although in theory it should work anyway.

from the survos/survos repository, run

```
bin/console survos:make:bundle foo-bundle
```

nette generator bug
===================

[](#nette-generator-bug)

```
symfony new bug --webapp && cd bug
composer require nette/php-generator
cat > src/Controller/AppController.php
