code: protected function defineControllers(Application $app)
      {
          $allowedLocalesPattern = $this->getAllowedLocalesPattern();
  
          $this->createController('/{availabilityAlert}/submit/{idProductAbstract}', static::ROUTE_AVAILABILITY_ALERT_SUBMIT, 'AvailabilityAlert', 'Submit', 'index')
              ->assert('availabilityAlert', $allowedLocalesPattern . 'availability-alert|availability-alert')
              ->value('availabilityAlert', 'availability-alert')
              ->assert('idProductAbstract', static::ID_ABSTRACT_PRODUCT_REGEX);
      }
docs: @param \Silex\Application $app
  
  @return void