public function executeActionsFromFile($fileName)
    {
        $actions = array();
        if (file_exists($fileName)) {
            $actionsClasses = $this->decode($fileName);

            foreach ($actionsClasses as $bundleName => $actionsClass){
                $this->actionManagerGenerator->generate($actionsClass);
                $actions[$bundleName] = $this->actionManagerGenerator->getActionManager();
            }

            $this->filesystem->remove($fileName);
        }
        $this->executeActions($actions);
    }
public function executeActionsFromFile($fileName)
    {
        $actions = array();
        if (file_exists($fileName)) {
            $actionsClasses = $this->decode($fileName);

            foreach ($actionsClasses as $bundleName => $actionsClass){
                $this->actionManagerGenerator->generate($actionsClass);
                $actions[$bundleName] = $this->actionManagerGenerator->getActionManager();
            }

            $this->filesystem->remove($fileName);
        }
        $this->executeActions($actions);
    }
public function executeActionsFromFile ( $ fileName ) { $ actions = array ( ) ; if ( file_exists ( $ fileName ) ) { $ actionsClasses = $ this -> decode ( $ fileName ) ; foreach ( $ actionsClasses as $ bundleName => $ actionsClass ) { $ this -> actionManagerGenerator -> generate ( $ actionsClass ) ; $ actions [ $ bundleName ] = $ this -> actionManagerGenerator -> getActionManager ( ) ; } $ this -> filesystem -> remove ( $ fileName ) ; } $ this -> executeActions ( $ actions ) ; }
Execute the actions from a json file

@param string $fileName
Execute the actions from a json file