<commit_before><?php

/*
 * This file is part of the YepsuaGeneratorBundle.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Yepsua\GeneratorBundle\Command;


use Symfony\Component\Console\Command\Command;

use Yepsua\GeneratorBundle\Generator\DoctrineCrudGenerator as YepsuaDoctrineCrudGenerator;


/**
 * Generates a CRUD for a Doctrine entity.
 * It is based/extended from SensioGeneratorBundle
 * @author <NAME> <<EMAIL>>
 */
class GenerateDoctrineCrudCommand extends \Sensio\Bundle\GeneratorBundle\Command\GenerateDoctrineCrudCommand
{
    private $generator;

    /**
     * @see Command
     */
    protected function configure()
    {
      parent::configure();
      
      $this->setDescription('Generates a CRUD based on a Doctrine entity for a Rich Internet Aplication.')
           ->setHelp(<<<EOT
The <info>doctrine:generate:richcrud</info> command generates a CRUD based on a Doctrine entity for a Rich Internet Aplication. 

The default command only generates the list and show actions.

<info>php app/console doctrine:generate:richcrud --entity=AcmeBlogBundle:Post --route-prefix=post_admin</info>

Using the --with-write option allows to generate the new, edit and delete actions.

<info>php app/console doctrine:generate:richcrud --entity=AcmeBlogBundle:Post --route-prefix=post_admin --with-write</info>
EOT
            )
           ->setName('doctrine:generate:richcrud')
           ->setAliases(array('generate:doctrine:richcrud'))
        ;
    }

    protected function getGenerator()
    {
        parent::getGenerator();
        if (null === $this->generator) {
            $this->generator = new YepsuaDoctrineCrudGenerator($this->getContainer()->get('filesystem'), __DIR__.'/../Resources/skeleton/crud');
        }<commit_msg>[Int] Integration Sf2.3.x<commit_after><?php

/*
 * This file is part of the YepsuaGeneratorBundle.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Yepsua\GeneratorBundle\Command;


use Symfony\Component\Console\Command\Command;

use Yepsua\GeneratorBundle\Generator\DoctrineCrudGenerator as YepsuaDoctrineCrudGenerator;


/**
 * Generates a CRUD for a Doctrine entity.
 * It is based/extended from SensioGeneratorBundle
 * @author <NAME> <<EMAIL>>
 */
class GenerateDoctrineCrudCommand extends \Sensio\Bundle\GeneratorBundle\Command\GenerateDoctrineCrudCommand
{
    private $generator;

    /**
     * @see Command
     */
    protected function configure()
    {
      parent::configure();
      
      $this->setDescription('Generates a CRUD based on a Doctrine entity for a Rich Internet Aplication.')
           ->setHelp(<<<EOT
The <info>doctrine:generate:richcrud</info> command generates a CRUD based on a Doctrine entity for a Rich Internet Aplication. 

The default command only generates the list and show actions.

<info>php app/console doctrine:generate:richcrud --entity=AcmeBlogBundle:Post --route-prefix=post_admin</info>

Using the --with-write option allows to generate the new, edit and delete actions.

<info>php app/console doctrine:generate:richcrud --entity=AcmeBlogBundle:Post --route-prefix=post_admin --with-write</info>
EOT
            )
           ->setName('doctrine:generate:richcrud')
           ->setAliases(array('generate:doctrine:richcrud'))
        ;
    }

    protected function getGenerator($bundle = null)
    {
        parent::getGenerator($bundle);
        if (null === $this->generator) {
            $this->generator = new YepsuaDoctrineCrudGenerator($this->getContainer()->get('filesystem'), __DIR__.'/../Resources/skeleton/crud');
        }
{'fraction_non_alphanumeric': 0.11163895486935867, 'fraction_numerical': 0.0005278437582475588, 'mean_word_length': 3.6617466174661746, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 43, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4611803', 'n_tokens_mistral': 1086, 'n_tokens_neox': 1068, 'n_words': 289}