Created
September 1, 2015 12:50
-
-
Save kurozumi/21b9cb2867880e3b7f98 to your computer and use it in GitHub Desktop.
【EC-CUBE3】新規ページ作成方法。サービスプロバイダの作成
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Plugin\Pages\ServiceProvider; | |
use Eccube\Application; | |
use Silex\Application as BaseApplication; | |
use Silex\ServiceProviderInterface; | |
class PagesServiceProvider implements ServiceProviderInterface | |
{ | |
public function register(BaseApplication $app) | |
{ | |
$app->match('/sample', | |
'\Plugin\Pages\Controller\PagesController::sample') | |
->bind('sample'); | |
} | |
public function boot(BaseApplication $app) | |
{ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment