定制 a5sys/logged-in-redirection-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

a5sys/logged-in-redirection-bundle

Composer 安装命令:

composer require a5sys/logged-in-redirection-bundle

包简介

README 文档

README

The bundle redirect the logged in user to an url if he attempt to go to an url.

The use case:

  • A user bookmarks the login page and always get the login form even if he is logged in. So we redirect to the homepage.

Composer

Use composer to get the bundle

composer require "a5sys/logged-in-redirection-bundle"

Activate the bundle

In the AppKernel, activate the bundle

public function registerBundles()
    {
        $bundles = array(
            ...
            new A5sys\LoggedInRedirectionBundle\LoggedInRedirectionBundle(),

The configuration

You have to add the configuration to your config.yml:

logged_in_redirection:
    route_name: "fos_user_security_login" #the name of the route to check
    redirect_route_name: "homepage" # the name of the route to redirect

统计信息

  • 总下载量: 462
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-11-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固