Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Hostname in annotations router.

Please tell me how to and where to describe the parameter "hostName" in the annotations of the controller, and is it possible?

/**
 * Class Auth
 *
 * User authorization in the system.
 *
 * @RoutePrefix("/")
 *
 * @package Account\Controllers
 * @version 1.0.0
 */
class Auth extends Frontend {

  /**
   * Initial configuration.
   */
  public function initialize() {
    parent::initialize();
  }

  /**
   * Authorization form.
   *
   * @Get("account/auth.html", name="Account:Auth:Form:View",
   *   paths={module="Account"})
   *
   * @return mixed
   */
  public function formView() {

  }

  /**
   * The authorization procedure.
   *
   * @Post("account/auth.json", name="Account:Auth:Form:Processing",
   *   paths={module="Account"})
   *
   * @return mixed
   */
  public function formProcessing() {

  }

  /**
   * The user logs off.
   *
   * @Get("account/auth/logout.html", name="Account:Auth:logOut",
   *   paths={module="Account"})
   *
   * @return mixed
   */
  public function logOut() {

  }

}


99.3k
Accepted
answer

It's not possible right now. Well, i guess i will do PR with it if you need such a functionallity.



1.1k

Yes, such a possibility is needed. Without it, annotation router is not a complete.