Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nacmartin/nmdoctrineguardstuffplugin
Yet another plugin extending sfDoctrineGuardPlugin
https://github.com/nacmartin/nmdoctrineguardstuffplugin
Last synced: 6 days ago
JSON representation
Yet another plugin extending sfDoctrineGuardPlugin
- Host: GitHub
- URL: https://github.com/nacmartin/nmdoctrineguardstuffplugin
- Owner: nacmartin
- Created: 2010-05-20T22:47:09.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2011-02-11T01:59:39.000Z (almost 14 years ago)
- Last Synced: 2024-10-30T02:43:42.537Z (about 2 months ago)
- Language: PHP
- Homepage:
- Size: 238 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
nmDoctrineGuardStuffPlugin
==========================nmDoctrineGuardStuffPlugin is yet another plugin extending sfDoctrineGuardPlugin.
This is the code that I use, know and like. It was initially based on the code of [symfonians](http://symfonians.org) by Nicolas Perrault.
New versions may not be backwards compatible.
Installation
------------If you are not using git in your project:
$ cd /path/to/symfony/project
$ git clone git://github.com/nacmartin/nmDoctrineGuardStuffPlugin.git plugins/nmDoctrineGuardStuffPluginIf you are already using git:
$ cd /path/to/symfony/project
$ git submodule add git://github.com/nacmartin/nmDoctrineGuardStuffPlugin.git plugins/nmDoctrineGuardStuffPlugin
$ git submodule update --init
$ git commit -a -m "added nmDoctrineGuardStuffPlugin submodule"Configuration
-------------Enable it in your `ProjectConfiguration.class.php`:
$this->enablePlugins('sfDoctrinePlugin');
$this->enablePlugins('sfDoctrineGuardPlugin');
$this->enablePlugins('nmDoctrineGuardStuffPlugin');And in `app/APPNAME/config/setting.yml`:
all:
.setting:
enabled_modules: [default, sfGuardAuth, nmGuardStuff]
login_module: nmGuardStuff
login_action: signinIn `app/APPNAME/config/app.yml`:
all:
fromemail: "[email protected]"
fromfullname: "email to appear in from"
webname: "Name of your website"in `lib/model/doctrine/sfDoctrineGuardPlugin/sfGuardUser.class.php`, make the class inherit from `nmGuardStuffUser`
class sfGuardUser extends nmGuardStuffUseradd these lines (and more columns if you want to your `schema.yml`:
sfGuardUserProfile:
inheritance:
type: simple
extends: sfGuardUserProfileStuff
relations:
User:
class: sfGuardUser
foreign: id
local: user_id
type: one
onDelete: cascade
foreignType: one
foreignAlias: Profilecross your fingers
License
-------nmDoctrineGuardStuffPlugin is licensed under [CC-by-sa-3.0](http://creativecommons.org/licenses/by-sa/3.0/) license.