2017 © Pedro Peláez
 

symfony-bundle user-project-bundle

If you have multiple users that will share access to one or more objects.

image

happyr/user-project-bundle

If you have multiple users that will share access to one or more objects.

  • Wednesday, June 15, 2016
  • by Nyholm
  • Repository
  • 1 Watchers
  • 1 Stars
  • 304 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Happyr User Project Bundle

If you have multiple users that will share access to one or more objects., (*1)

Installation

Step 1: Using Composer

Install it with Composer!, (*2)

// composer.json
{
    // ...
    require: {
        // ...
        "happyr/user-project-bundle": "dev-master",
    }
}

Then, you can install the new dependencies by running Composer's update command from the directory where your composer.json file is located:, (*3)

$ php composer.phar update

Step 2: Register the bundle

To register the bundles with your kernel:, (*4)

<?php

// in AppKernel::registerBundles()
$bundles = array(
    // ...
    new Happyr\UserProjectBundle\HappyrUserProjectBundle(),
    // ...
);

Step 3: Init ACL

If you have not done it before, it is time to init the ACL. If you like, you could read about access control lists or you could just run this command:, (*5)

php app/console init:acl

Step 4: Configure the bundle

``` yaml, (*6)

app/config/config.yml

happyr_user_project:

#no config at this point, (*7)


Requirements ------------ Your User object must implement Happyr\UserProjectBundle\Model\ProjectMemberInterface. Your other object that is in the project must implement Happyr\UserProjectBundle\Model\ProjectObjectInterface. http://symfony.com/doc/current/cookbook/doctrine/resolve_target_entity.html ``` php use Happyr\UserProjectBundle\Model\ProjectObjectInterface; use Happyr\UserProjectBundle\Entity\Project; class MyObject implements ProjectObjectInterface { /** * @var \Happyr\UserProjectBundle\Entity\Project project * * @ORM\ManyToOne(targetEntity="Happyr\UserProjectBundle\Entity\Project", inversedBy="objects", cascade={"persist"}) * */ protected $project; public function getId() { return $this->id } public function getProject() { $this->project; } /** * * @param Project $project * */ public function setProject(Project $project) { $this->project=$project; } }

Routing

# app/config/routing.yml
happyr_user_project:
    resource: "@HappyrUserProjectBundle/Resources/config/routing.yml"
    prefix:   /

The Versions

15/06 2016

dev-master

9999999-dev http://developer.happyr.com/symfony2-bundles/happyr-user-project-bundle

If you have multiple users that will share access to one or more objects.

  Sources   Download

MIT

The Requires

 

The Development Requires

user management project

15/06 2016

0.3.1

0.3.1.0 http://developer.happyr.com/symfony2-bundles/happyr-user-project-bundle

If you have multiple users that will share access to one or more objects.

  Sources   Download

MIT

The Requires

 

The Development Requires

user management project

03/09 2015

0.3.0

0.3.0.0 http://developer.happyr.com/symfony2-bundles/happyr-user-project-bundle

If you have multiple users that will share access to one or more objects.

  Sources   Download

MIT

The Requires

 

The Development Requires

user management project

21/02 2014

0.2.0

0.2.0.0 http://developer.happyr.se/symfony2-bundles/happyr-user-project-bundle

If you have multiple users that will share access to one or more objects.

  Sources   Download

MIT

The Requires

 

The Development Requires

user management project

02/01 2014

0.1.0

0.1.0.0 http://developer.happyr.se/symfony2-bundles/happyr-user-project-bundle

If you have multiple users that will share access to one or more objects.

  Sources   Download

MIT

The Requires

 

The Development Requires

user management project