PHP Classes

File: Config/Queries/ClientDB/PUT/Registration.php

Recommend this page to a friend!
  Classes of Ramesh Narayan Jangid   PHP Microservices Framework   Config/Queries/ClientDB/PUT/Registration.php   Download  
File: Config/Queries/ClientDB/PUT/Registration.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Microservices Framework
Setup microservices apps with configuration arrays
Author: By
Last change: Refactor
Date: 11 days ago
Size: 846 bytes
 

Contents

Class file image Download
<?php
namespace Microservices\Config\Queries\ClientDB\PUT;

use
Microservices\App\Constants;

return
array_merge(
    include
Constants::$DOC_ROOT . '/Config/Queries/ClientDB/Common/Registration.php',
    [
       
'__CONFIG__' => [// [{payload/uriParams}, key/index, {Constants::$REQUIRED}]
           
['payload', 'firstname', Constants::$REQUIRED],
            [
'payload', 'lastname', Constants::$REQUIRED],
            [
'payload', 'email', Constants::$REQUIRED],
            [
'uriParams', 'id', Constants::$REQUIRED],
        ],
       
'__SET__' => [
           
'firstname' => ['payload', 'firstname'],
           
'lastname' => ['payload', 'lastname'],
           
'email' => ['payload', 'email']
        ],
       
'__WHERE__' => [
           
'is_deleted' => ['custom', 'No'],
           
'id' => ['uriParams', 'id']
        ],
    ]
);