Eccube\ControllerProvider\FrontControllerProvider::connect PHP Метод

connect() публичный Метод

public connect ( Silex\Application $app )
$app Silex\Application
    public function connect(Application $app)
    {
        $c = $app['controllers_factory'];
        // 強制SSL
        if ($app['config']['force_ssl'] == \Eccube\Common\Constant::ENABLED) {
            $c->requireHttps();
        }
        // user定義
        $c->match('/' . $app['config']['user_data_route'] . '/{route}', '\\Eccube\\Controller\\UserDataController::index')->assert('route', '([0-9a-zA-Z_\\-]+\\/?)+(?<!\\/)')->bind('user_data');
        // root
        $c->match('/', '\\Eccube\\Controller\\TopController::index')->bind('homepage');
        $c->match('/', '\\Eccube\\Controller\\TopController::index')->bind('top');
        // deprecated since 3.0.0, to be removed in 3.1
        $c->match('/', '\\Eccube\\Controller\\TopController::index')->bind('index');
        // deprecated since 3.0.0, to be removed in 3.1
        // cart
        $c->match('/cart', '\\Eccube\\Controller\\CartController::index')->bind('cart');
        $c->post('/cart/add', '\\Eccube\\Controller\\CartController::add')->bind('cart_add');
        $c->put('/cart/up/{productClassId}', '\\Eccube\\Controller\\CartController::up')->bind('cart_up')->assert('productClassId', '\\d+');
        $c->put('/cart/down/{productClassId}', '\\Eccube\\Controller\\CartController::down')->bind('cart_down')->assert('productClassId', '\\d+');
        // setquantity deprecated since 3.0.0, to be removed in 3.1
        $c->put('/cart/setQuantity/{productClassId}/{quantity}', '\\Eccube\\Controller\\CartController::setQuantity')->bind('cart_set_quantity')->assert('productClassId', '\\d+')->assert('quantity', '\\d+');
        $c->put('/cart/remove/{productClassId}', '\\Eccube\\Controller\\CartController::remove')->bind('cart_remove')->assert('productClassId', '\\d+');
        $c->match('/cart/buystep', '\\Eccube\\Controller\\CartController::buystep')->bind('cart_buystep');
        // contact
        $c->match('/contact', '\\Eccube\\Controller\\ContactController::index')->bind('contact');
        $c->match('/contact/complete', '\\Eccube\\Controller\\ContactController::complete')->bind('contact_complete');
        // entry
        $c->match('/entry', '\\Eccube\\Controller\\EntryController::index')->bind('entry');
        $c->match('/entry/complete', '\\Eccube\\Controller\\EntryController::complete')->bind('entry_complete');
        $c->match('/entry/activate/{secret_key}', '\\Eccube\\Controller\\EntryController::activate')->bind('entry_activate');
        // forgot
        $c->match('/forgot', '\\Eccube\\Controller\\ForgotController::index')->bind('forgot');
        $c->match('/forgot/complete', '\\Eccube\\Controller\\ForgotController::complete')->bind('forgot_complete');
        $c->match('/forgot/reset/{reset_key}', '\\Eccube\\Controller\\ForgotController::reset')->bind('forgot_reset');
        // block
        $c->match('/block/category', '\\Eccube\\Controller\\Block\\CategoryController::index')->bind('block_category');
        $c->match('/block/cart', '\\Eccube\\Controller\\Block\\CartController::index')->bind('block_cart');
        $c->match('/block/search_product', '\\Eccube\\Controller\\Block\\SearchProductController::index')->bind('block_search_product');
        $c->match('/block/news', '\\Eccube\\Controller\\Block\\NewsController::index')->bind('block_news');
        $c->match('/block/login', '\\Eccube\\Controller\\Block\\LoginController::index')->bind('block_login');
        // 特定商取引 order -> help/traderaw
        $c->match('/help/about', '\\Eccube\\Controller\\HelpController::about')->bind('help_about');
        $c->match('/help/guide', '\\Eccube\\Controller\\HelpController::guide')->bind('help_guide');
        $c->match('/help/privacy', '\\Eccube\\Controller\\HelpController::privacy')->bind('help_privacy');
        $c->match('/help/tradelaw', '\\Eccube\\Controller\\HelpController::tradelaw')->bind('help_tradelaw');
        $c->match('/help/agreement', '\\Eccube\\Controller\\HelpController::agreement')->bind('help_agreement');
        // mypage
        $c->match('/mypage', '\\Eccube\\Controller\\Mypage\\MypageController::index')->bind('mypage');
        $c->match('/mypage/login', '\\Eccube\\Controller\\Mypage\\MypageController::login')->bind('mypage_login');
        $c->match('/mypage/change', '\\Eccube\\Controller\\Mypage\\ChangeController::index')->bind('mypage_change');
        $c->match('/mypage/change_complete', '\\Eccube\\Controller\\Mypage\\ChangeController::complete')->bind('mypage_change_complete');
        $c->match('/mypage/delivery', '\\Eccube\\Controller\\Mypage\\DeliveryController::index')->bind('mypage_delivery');
        $c->match('/mypage/delivery/new', '\\Eccube\\Controller\\Mypage\\DeliveryController::edit')->bind('mypage_delivery_new');
        $c->match('/mypage/delivery/{id}/edit', '\\Eccube\\Controller\\Mypage\\DeliveryController::edit')->assert('id', '\\d+')->bind('mypage_delivery_edit');
        $c->delete('/mypage/delivery/{id}/delete', '\\Eccube\\Controller\\Mypage\\DeliveryController::delete')->assert('id', '\\d+')->bind('mypage_delivery_delete');
        $c->match('/mypage/favorite', '\\Eccube\\Controller\\Mypage\\MypageController::favorite')->bind('mypage_favorite');
        $c->delete('/mypage/favorite/{id}/delete', '\\Eccube\\Controller\\Mypage\\MypageController::delete')->assert('id', '\\d+')->bind('mypage_favorite_delete');
        $c->match('/mypage/history/{id}', '\\Eccube\\Controller\\Mypage\\MypageController::history')->bind('mypage_history')->assert('id', '\\d+');
        $c->put('/mypage/order/{id}', '\\Eccube\\Controller\\Mypage\\MypageController::order')->bind('mypage_order')->assert('id', '\\d+');
        $c->match('/mypage/withdraw', '\\Eccube\\Controller\\Mypage\\WithdrawController::index')->bind('mypage_withdraw');
        $c->match('/mypage/withdraw_complete', '\\Eccube\\Controller\\Mypage\\WithdrawController::complete')->bind('mypage_withdraw_complete');
        // products
        $c->match('/products/list', '\\Eccube\\Controller\\ProductController::index')->bind('product_list');
        $c->match('/products/detail/{id}', '\\Eccube\\Controller\\ProductController::detail')->bind('product_detail')->assert('id', '\\d+');
        // shopping
        $c->match('/shopping', '\\Eccube\\Controller\\ShoppingController::index')->bind('shopping');
        $c->match('/shopping/confirm', '\\Eccube\\Controller\\ShoppingController::confirm')->bind('shopping_confirm');
        $c->match('/shopping/delivery', '\\Eccube\\Controller\\ShoppingController::delivery')->bind('shopping_delivery');
        $c->match('/shopping/payment', '\\Eccube\\Controller\\ShoppingController::payment')->bind('shopping_payment');
        $c->match('/shopping/shipping_change/{id}', '\\Eccube\\Controller\\ShoppingController::shippingChange')->assert('id', '\\d+')->bind('shopping_shipping_change');
        $c->match('/shopping/shipping/{id}', '\\Eccube\\Controller\\ShoppingController::shipping')->assert('id', '\\d+')->bind('shopping_shipping');
        $c->match('/shopping/shipping_edit_change/{id}', '\\Eccube\\Controller\\ShoppingController::shippingEditChange')->assert('id', '\\d+')->bind('shopping_shipping_edit_change');
        $c->match('/shopping/shipping_edit/{id}', '\\Eccube\\Controller\\ShoppingController::shippingEdit')->assert('id', '\\d+')->bind('shopping_shipping_edit');
        $c->match('/shopping/complete', '\\Eccube\\Controller\\ShoppingController::complete')->bind('shopping_complete');
        $c->match('/shopping/login', '\\Eccube\\Controller\\ShoppingController::login')->bind('shopping_login');
        $c->match('/shopping/nonmember', '\\Eccube\\Controller\\ShoppingController::nonmember')->bind('shopping_nonmember');
        $c->match('/shopping/customer', '\\Eccube\\Controller\\ShoppingController::customer')->bind('shopping_customer');
        $c->match('/shopping/shopping_error', '\\Eccube\\Controller\\ShoppingController::shoppingError')->bind('shopping_error');
        $c->match('/shopping/shipping_multiple_change', '\\Eccube\\Controller\\ShoppingController::shippingMultipleChange')->bind('shopping_shipping_multiple_change');
        $c->match('/shopping/shipping_multiple', '\\Eccube\\Controller\\ShoppingController::shippingMultiple')->bind('shopping_shipping_multiple');
        $c->match('/shopping/shipping_multiple_edit', '\\Eccube\\Controller\\ShoppingController::shippingMultipleEdit')->bind('shopping_shipping_multiple_edit');
        return $c;
    }
FrontControllerProvider