Skip to content

Instantly share code, notes, and snippets.

@kurozumi
Last active August 30, 2017 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kurozumi/80a21df07b8defd733d92414d7493421 to your computer and use it in GitHub Desktop.
Save kurozumi/80a21df07b8defd733d92414d7493421 to your computer and use it in GitHub Desktop.
【EC-CUBE3】会員ログイン後に表示されるページを指定する方法
<?php
namespace Plugin\SamplePlugin\ServiceProvider;
use Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy;
use Monolog\Handler\FingersCrossedHandler;
use Monolog\Handler\RotatingFileHandler;
use Monolog\Logger;
use Plugin\SamplePlugin\Form\Type\SamplePluginConfigType;
use Silex\Application as BaseApplication;
use Silex\ServiceProviderInterface;
class SamplePluginServiceProvider implements ServiceProviderInterface
{
public function register(BaseApplication $app)
{
$firewalls = $app['security.firewalls'];
$firewalls["customer"]["form"]["default_target_path"] = "/mypage/favorite";
$app['security.firewalls'] = $firewalls;
}
public function boot(BaseApplication $app)
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment