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);
    }
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);
    }
@param \Silex\Application $app

@return void