src/Controller/Ajax.php
protected function getPost($key, $decodeEntities = false)
    {
        return $this->getEnvironment()->getInputProvider()->getValue($key, $decodeEntities);
    }
protected function getPost($key, $decodeEntities = false)
    {
        return $this->getEnvironment()->getInputProvider()->getValue($key, $decodeEntities);
    }
protected function getPost ( $ key , $ decodeEntities = false ) { return $ this -> getEnvironment ( ) -> getInputProvider ( ) -> getValue ( $ key , $ decodeEntities ) ; }
Compatibility wrapper for contao 2.X and 3.X - delegates to the relevant input handler.

@param string $key            The key to retrieve.
@param bool   $decodeEntities Decode the entities.

@return mixed
Compatibility wrapper for contao 2 . X and 3 . X - delegates to the relevant input handler .