src/Controller/Input.php
public function getInput()
    {
        $data = $this->getRequest()->getParsedBody();
        
        if (is_array($data)) {
            $files = $this->getRequest()->getUploadedFiles();
            $data = array_replace_recursive($data, (array)$files);
        }
        
        return $data;
    }
public function getInput()
    {
        $data = $this->getRequest()->getParsedBody();
        
        if (is_array($data)) {
            $files = $this->getRequest()->getUploadedFiles();
            $data = array_replace_recursive($data, (array)$files);
        }
        
        return $data;
    }
public function getInput ( ) { $ data = $ this -> getRequest ( ) -> getParsedBody ( ) ; if ( is_array ( $ data ) ) { $ files = $ this -> getRequest ( ) -> getUploadedFiles ( ) ; $ data = array_replace_recursive ( $ data , ( array ) $ files ) ; } return $ data ; }
Get parsed body and uploaded files as input

@return array|mixed
Get parsed body and uploaded files as input