add light/yii2-xmlparser
to composer.json
$ composer install
or
$ composer update
# file app/config/main.php
<?php
return [
'components' => [
'request' => [
'parsers' => [
'text/xml' => 'light\yii2\XmlParser',
'application/xml' => 'light\yii2\XmlParser',
],
],
],
];
$ phpunit