Commit 435c6b41 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Nouvelle vue SYGAL_ANNEE_UNIV, nouveau service these-annee-univ.

parent 0243c012
Loading
Loading
Loading
Loading
Loading
+122 −2
Original line number Diff line number Diff line
@@ -164,6 +164,15 @@ return [
                    ],
                ],
            ],
            'import-data.rest.doctrine.these-annee-univ' => [
                'type' => 'Segment',
                'options' => [
                    'route' => '/these-annee-univ[/:these_annee_univ_id]',
                    'defaults' => [
                        'controller' => 'ImportData\\V1\\Rest\\TheseAnneeUniv\\Controller',
                    ],
                ],
            ],
        ],
    ],
    'zf-versioning' => [
@@ -183,6 +192,7 @@ return [
            12 => 'import-data.rest.doctrine.origine-financement',
            13 => 'import-data.rest.doctrine.financement',
            14 => 'import-data.rest.doctrine.titre-acces',
            15 => 'import-data.rest.doctrine.these-annee-univ',
        ],
    ],
    'zf-rest' => [
@@ -470,6 +480,25 @@ return [
            'collection_class' => \ImportData\V1\Rest\TitreAcces\TitreAccesCollection::class,
            'service_name' => 'TitreAcces',
        ],
        'ImportData\\V1\\Rest\\TheseAnneeUniv\\Controller' => [
            'listener' => \ImportData\V1\Rest\TheseAnneeUniv\TheseAnneeUnivResource::class,
            'route_name' => 'import-data.rest.doctrine.these-annee-univ',
            'route_identifier_name' => 'these_annee_univ_id',
            'entity_identifier_name' => 'id',
            'collection_name' => 'these_annee_univ',
            'entity_http_methods' => [
                0 => 'GET',
            ],
            'collection_http_methods' => [
                0 => 'GET',
            ],
            'collection_query_whitelist' => [],
            'page_size' => '500',
            'page_size_param' => null,
            'entity_class' => \ImportData\V1\Entity\Db\TheseAnneeUniv::class,
            'collection_class' => \ImportData\V1\Rest\TheseAnneeUniv\TheseAnneeUnivCollection::class,
            'service_name' => 'TheseAnneeUniv',
        ],
    ],
    'zf-content-negotiation' => [
        'controllers' => [
@@ -488,6 +517,7 @@ return [
            'ImportData\\V1\\Rest\\OrigineFinancement\\Controller' => 'HalJson',
            'ImportData\\V1\\Rest\\Financement\\Controller' => 'HalJson',
            'ImportData\\V1\\Rest\\TitreAcces\\Controller' => 'HalJson',
            'ImportData\\V1\\Rest\\TheseAnneeUniv\\Controller' => 'HalJson',
        ],
        'accept-whitelist' => [
            'ImportData\\V1\\Rest\\These\\Controller' => [
@@ -614,6 +644,11 @@ return [
                1 => 'application/hal+json',
                2 => 'application/json',
            ],
            'ImportData\\V1\\Rest\\TheseAnneeUniv\\Controller' => [
                0 => 'application/vnd.import-data.v1+json',
                1 => 'application/hal+json',
                2 => 'application/json',
            ],
        ],
        'content_type_whitelist' => [
            'ImportData\\V1\\Rest\\Structure\\Controller' => [
@@ -665,6 +700,10 @@ return [
                0 => 'application/vnd.import-data.v1+json',
                1 => 'application/json',
            ],
            'ImportData\\V1\\Rest\\TheseAnneeUniv\\Controller' => [
                0 => 'application/vnd.import-data.v1+json',
                1 => 'application/json',
            ],
        ],
    ],
    'zf-hal' => [
@@ -835,6 +874,17 @@ return [
                'route_name' => 'import-data.rest.doctrine.titre-acces',
                'is_collection' => true,
            ],
            \ImportData\V1\Entity\Db\TheseAnneeUniv::class => [
                'route_identifier_name' => 'these_annee_univ_id',
                'entity_identifier_name' => 'id',
                'route_name' => 'import-data.rest.doctrine.these-annee-univ',
                'hydrator' => 'ImportData\\V1\\Rest\\TheseAnneeUniv\\TheseAnneeUnivHydrator',
            ],
            \ImportData\V1\Rest\TheseAnneeUniv\TheseAnneeUnivCollection::class => [
                'entity_identifier_name' => 'id',
                'route_name' => 'import-data.rest.doctrine.these-annee-univ',
                'is_collection' => true,
            ],
        ],
    ],
    'zf-apigility' => [
@@ -899,6 +949,10 @@ return [
                'object_manager' => 'doctrine.entitymanager.orm_default',
                'hydrator' => 'ImportData\\V1\\Rest\\TitreAcces\\TitreAccesHydrator',
            ],
            \ImportData\V1\Rest\TheseAnneeUniv\TheseAnneeUnivResource::class => [
                'object_manager' => 'doctrine.entitymanager.orm_default',
                'hydrator' => 'ImportData\\V1\\Rest\\TheseAnneeUniv\\TheseAnneeUnivHydrator',
            ],
        ],
    ],
    'doctrine-hydrator' => [
@@ -1000,6 +1054,13 @@ return [
            'strategies' => [],
            'use_generated_hydrator' => true,
        ],
        'ImportData\\V1\\Rest\\TheseAnneeUniv\\TheseAnneeUnivHydrator' => [
            'entity_class' => \ImportData\V1\Entity\Db\TheseAnneeUniv::class,
            'object_manager' => 'doctrine.entitymanager.orm_default',
            'by_value' => true,
            'strategies' => [],
            'use_generated_hydrator' => true,
        ],
    ],
    'zf-content-validation' => [
        'ImportData\\V1\\Rest\\These\\Controller' => [
@@ -1047,6 +1108,9 @@ return [
        'ImportData\\V1\\Rest\\TitreAcces\\Controller' => [
            'input_filter' => 'ImportData\\V1\\Rest\\TitreAcces\\Validator',
        ],
        'ImportData\\V1\\Rest\\TheseAnneeUniv\\Controller' => [
            'input_filter' => 'ImportData\\V1\\Rest\\TheseAnneeUniv\\Validator',
        ],
    ],
    'input_filter_specs' => [
        'ImportData\\V1\\Rest\\These\\Validator' => [
@@ -2345,6 +2409,47 @@ return [
                'validators' => [],
            ],
        ],
        'ImportData\\V1\\Rest\\TheseAnneeUniv\\Validator' => [
            0 => [
                'name' => 'sourceId',
                'required' => true,
                'filters' => [
                    0 => [
                        'name' => \Zend\Filter\StringTrim::class,
                    ],
                    1 => [
                        'name' => \Zend\Filter\StripTags::class,
                    ],
                ],
                'validators' => [],
            ],
            1 => [
                'name' => 'theseId',
                'required' => true,
                'filters' => [
                    0 => [
                        'name' => \Zend\Filter\StringTrim::class,
                    ],
                    1 => [
                        'name' => \Zend\Filter\StripTags::class,
                    ],
                ],
                'validators' => [],
            ],
            2 => [
                'name' => 'anneeUniv',
                'required' => true,
                'filters' => [
                    0 => [
                        'name' => \Zend\Filter\StringTrim::class,
                    ],
                    1 => [
                        'name' => \Zend\Filter\StripTags::class,
                    ],
                ],
                'validators' => [],
            ],
        ],
    ],
    'zf-mvc-auth' => [
        'authorization' => [
@@ -2572,12 +2677,27 @@ return [
                    'DELETE' => false,
                ],
            ],
            'ImportData\\V1\\Rest\\TheseAnneeUniv\\Controller' => [
                'collection' => [
                    'GET' => true,
                    'POST' => false,
                    'PUT' => false,
                    'PATCH' => false,
                    'DELETE' => false,
                ],
                'entity' => [
                    'GET' => true,
                    'POST' => false,
                    'PUT' => false,
                    'PATCH' => false,
                    'DELETE' => false,
                ],
            ],
        ],
    ],
    'service_manager' => [
        'factories' => [
            \ImportData\V1\Rest\Version\VersionResource::class =>
                \ImportData\V1\Rest\Version\VersionResourceFactory::class,
            \ImportData\V1\Rest\Version\VersionResource::class => \ImportData\V1\Rest\Version\VersionResourceFactory::class,
        ],
    ],
];
+11 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
    <entity name="ImportData\V1\Entity\Db\TheseAnneeUniv" table="SYGAL_THESE_ANNEE_UNIV">
        <id name="id" type="string" column="ID"/>
        <field name="sourceId" column="SOURCE_ID"/>
        <field name="theseId" column="THESE_ID"/>
        <field name="anneeUniv" column="ANNEE_UNIV"/>
    </entity>
</doctrine-mapping>
+49 −0
Original line number Diff line number Diff line
<?php

namespace ImportData\V1\Entity\Db;

/**
 * TheseAnneeUniv
 *
 * @codeCoverageIgnore
 */
class TheseAnneeUniv
{
    protected $id;
    protected $sourceId;
    protected $theseId;
    protected $anneeUniv;

    /**
     * @return mixed
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * @return mixed
     */
    public function getSourceId()
    {
        return $this->sourceId;
    }

    /**
     * @return mixed
     */
    public function getTheseId()
    {
        return $this->theseId;
    }

    /**
     * @return mixed
     */
    public function getAnneeUniv()
    {
        return $this->anneeUniv;
    }

}
+8 −0
Original line number Diff line number Diff line
<?php
namespace ImportData\V1\Rest\TheseAnneeUniv;

use Zend\Paginator\Paginator;

class TheseAnneeUnivCollection extends Paginator
{
}
+8 −0
Original line number Diff line number Diff line
<?php
namespace ImportData\V1\Rest\TheseAnneeUniv;

use ZF\Apigility\Doctrine\Server\Resource\DoctrineResource;

class TheseAnneeUnivResource extends DoctrineResource
{
}