<?php
namespace Future\Api\WebAPI\API_public\registration;
use Future\Utils\ContainerClass;
class new_registration extends ContainerClass
{
function api_function()
{
header('Content-type: application/json');
$data = json_decode(file_get_contents("php://input"), true);
$birth_timestamp = strtotime($data['birthdate']['year'].'/'.$data['birthdate']['month'].'/'.$data['birthdate']['day']);
$this->container['user']->registration($birth_timestamp, $data['email'], $data['password'], $data['passwordRepeated']);
}
}