src/Kunstmaan/AdminBundle/Helper/Security/Acl/Permission/PermissionAdmin.php
public function bindRequest(Request $request)
    {
        $changes = $request->request->get('permission-hidden-fields');

        if (empty($changes)) {
            return true;
        }

        // Just apply the changes to the current node (non recursively)
        $this->applyAclChangeset($this->resource, $changes, false);

        // Apply recursively (on request)
        $applyRecursive = $request->request->get('applyRecursive');
        if ($applyRecursive) {
            // Serialize changes & store them in DB
            $user = $this->tokenStorage->getToken()->getUser();
            $this->createAclChangeSet($this->resource, $changes, $user);

            $cmd = 'php ' . $this->kernel->getRootDir() . '/../bin/console kuma:acl:apply';
            $cmd .= ' --env=' . $this->kernel->getEnvironment();

            $this->shellHelper->runInBackground($cmd);
        }

        return true;
    }
public function bindRequest(Request $request)
    {
        $changes = $request->request->get('permission-hidden-fields');

        if (empty($changes)) {
            return true;
        }

        // Just apply the changes to the current node (non recursively)
        $this->applyAclChangeset($this->resource, $changes, false);

        // Apply recursively (on request)
        $applyRecursive = $request->request->get('applyRecursive');
        if ($applyRecursive) {
            // Serialize changes & store them in DB
            $user = $this->tokenStorage->getToken()->getUser();
            $this->createAclChangeSet($this->resource, $changes, $user);

            $cmd = 'php ' . $this->kernel->getRootDir() . '/../bin/console kuma:acl:apply';
            $cmd .= ' --env=' . $this->kernel->getEnvironment();

            $this->shellHelper->runInBackground($cmd);
        }

        return true;
    }
public function bindRequest ( Request $ request ) { $ changes = $ request -> request -> get ( 'permission-hidden-fields' ) ; if ( empty ( $ changes ) ) { return true ; } // Just apply the changes to the current node (non recursively) $ this -> applyAclChangeset ( $ this -> resource , $ changes , false ) ; // Apply recursively (on request) $ applyRecursive = $ request -> request -> get ( 'applyRecursive' ) ; if ( $ applyRecursive ) { // Serialize changes & store them in DB $ user = $ this -> tokenStorage -> getToken ( ) -> getUser ( ) ; $ this -> createAclChangeSet ( $ this -> resource , $ changes , $ user ) ; $ cmd = 'php ' . $ this -> kernel -> getRootDir ( ) . '/../bin/console kuma:acl:apply' ; $ cmd .= ' --env=' . $ this -> kernel -> getEnvironment ( ) ; $ this -> shellHelper -> runInBackground ( $ cmd ) ; } return true ; }
Handle form entry of permission changes.

@param Request $request

@return bool
Handle form entry of permission changes .