PHP code example of mouf / security.rightsservice-splash

1. Go to this page and download the library: Download mouf/security.rightsservice-splash library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mouf / security.rightsservice-splash example snippets


/**
 * A sample default action that _ADMIN_RIGHT")
 */
public function index() { ... }

/**
 * A sample default action that CCESS_ADMIN_RIGHT",instance="myForbiddenMiddleware")
 */
public function index() { ... }

/**
 * An action that @Right(@AndRight({@Right("CAN_DO_THIS"), @Right("CAN_DO_THAT")}))
 */
public function index() { ... }

/**
 * An action that @Right(@OrRight({@Right("CAN_DO_THIS"), @Right("CAN_DO_THAT")}))
 */
public function index() { ... }