mirror of
https://github.com/elyby/accounts.git
synced 2024-12-24 06:09:52 +05:30
18 lines
385 B
PHP
18 lines
385 B
PHP
|
<?php
|
||
|
namespace api\controllers;
|
||
|
|
||
|
|
||
|
class Controller extends \yii\rest\Controller {
|
||
|
|
||
|
public $enableCsrfValidation = true;
|
||
|
|
||
|
public function behaviors() {
|
||
|
$parentBehaviors = parent::behaviors();
|
||
|
// xml нам не понадобится
|
||
|
unset($parentBehaviors['contentNegotiator']['formats']['application/xml']);
|
||
|
|
||
|
return $parentBehaviors;
|
||
|
}
|
||
|
|
||
|
}
|