title: Verbs for custom action is not working in yii2 REST API
body: <p>i'm adding a verb to the verbs behaviors to only allow POST request for some action and if the request not a POST it should return method not allowed but this is not working it return 404 not found response not 405 Not allowed response when i'm sending a GET request instead of POST please any help</p>
  
  <p>i set in my REST control the behaviors like this</p>
  
  <pre><code>public function behaviors()
  {
      $behaviors = parent::behaviors();
      $behaviors['authenticator'] = [
          'class' =&gt; CompositeAuth::className(),
          'except' =&gt; ['login'],
          'authMethods' =&gt; [
              HttpBearerAuth::className(),
          ],
      ];
  
      $behaviors['verbs'] = [
          'class' =&gt; \yii\filters\VerbFilter::className(),
          'actions' =&gt; [
              //'index'  =&gt; ['get'],
              'login' =&gt; ['post', 'put'],
              'view' =&gt; ['get'],
              //'create' =&gt; ['get', 'post'],
              'update' =&gt; ['put'],
              //'delete' =&gt; ['post', 'delete'],
              'delete' =&gt; [''],
              'test', ['post']
          ],
      ];
  
      return $behaviors;
  }
  </code></pre>
  
  <p>in the main.php</p>
  
  <pre><code>'urlManager' =&gt; [
          'enablePrettyUrl' =&gt; true,
          'enableStrictParsing' =&gt; true,
          'showScriptName' =&gt; false,
          'rules' =&gt; [
              [
                  'class' =&gt; 'yii\rest\UrlRule',
                  'controller' =&gt; ['v1/vendor'],
                  'extraPatterns' =&gt; [
                      'POST,PUT login' =&gt; 'login',
                      'POST logout' =&gt; 'logout',
                      'POST test' =&gt; 'test'
                  ],
                  'tokens' =&gt; [
                      '{id}' =&gt; '&lt;id:\\w+&gt;'
                  ]
              ],
          ],
      ]
  </code></pre>
  
  <p>so when i test and sent GET request to </p>
  
  <pre><code>GET localhost/mywebsite/api/web/v1/vendors/test
  </code></pre>
  
  <p>it return 404 not 405 status please any help</p>