<commit_before><?php

/*
 * This file is part of the OpenMiamMiam project.
 *
 * (c) Isics <<EMAIL>>
 *
 * This source file is subject to the AGPL v3 license that is bundled
 * with this source code in the file LICENSE.
 */

namespace Isics\Bundle\OpenMiamMiamBundle\Controller\Admin\Association;

use Isics\Bundle\OpenMiamMiamBundle\Entity\Association;
use Isics\Bundle\OpenMiamMiamBundle\Entity\AssociationHasProducer;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\StreamedResponse;


class ProducerController extends BaseController
{
    /**
     * List producers
     *
     * @param Request $request
     * @param Association $association
     *
     * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
     *
     * @return Response
     */
    public function listAction(Request $request, Association $association)
    {
        $this->secure($association);

        $associationHasProducers = $this->get('open_miam_miam.association_has_producer_manager')->findForAssociation($association);

        $form = $this->createForm(
            $this->get('open_miam_miam.form.type.association_producer_export_transfer'),
            null,
            array(
                'action' => $this->generateUrl('open_miam_miam.admin.association.producer.export', array('id' => $association->getId())),
                'method' => 'POST'
            )
        );

        return $this->render('IsicsOpenMiamMiamBundle:Admin\Association\Producer:list.html.twig', array(<commit_msg>fix bug in association producer edition form (paramConverter)<commit_after><?php

/*
 * This file is part of the OpenMiamMiam project.
 *
 * (c) Isics <<EMAIL>>
 *
 * This source file is subject to the AGPL v3 license that is bundled
 * with this source code in the file LICENSE.
 */

namespace Isics\Bundle\OpenMiamMiamBundle\Controller\Admin\Association;

use Isics\Bundle\OpenMiamMiamBundle\Entity\Association;
use Isics\Bundle\OpenMiamMiamBundle\Entity\AssociationHasProducer;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\StreamedResponse;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;


class ProducerController extends BaseController
{
    /**
     * List producers
     *
     * @param Request $request
     * @param Association $association
     *
     * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
     *
     * @return Response
     */
    public function listAction(Request $request, Association $association)
    {
        $this->secure($association);

        $associationHasProducers = $this->get('open_miam_miam.association_has_producer_manager')->findForAssociation($association);

        $form = $this->createForm(
            $this->get('open_miam_miam.form.type.association_producer_export_transfer'),
            null,
            array(
                'action' => $this->generateUrl('open_miam_miam.admin.association.producer.export', array('id' => $association->getId())),
                'method' => 'POST'
            )
        );

        return $this->render('IsicsOpenMiamMiamBundle:Admin\Association\Producer:list.html.twig', array(
{'fraction_non_alphanumeric': 0.10900763358778626, 'fraction_numerical': 0.0006106870229007634, 'mean_word_length': 3.5248618784530388, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 29, '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': '4158367', 'n_tokens_mistral': 954, 'n_tokens_neox': 929, 'n_words': 176}