public function generate($actionManager)
    {
        if ($actionManager instanceof ActionManagerInterface) {
            $this->actionManager = $actionManager;
            $this->actionManagerClass = get_class($this->actionManager);
        }

        if (is_string($actionManager) && class_exists($actionManager)) {
            $this->actionManager = new $actionManager();
            $this->actionManagerClass = $actionManager;
        }
    }
public function generate($actionManager)
    {
        if ($actionManager instanceof ActionManagerInterface) {
            $this->actionManager = $actionManager;
            $this->actionManagerClass = get_class($this->actionManager);
        }

        if (is_string($actionManager) && class_exists($actionManager)) {
            $this->actionManager = new $actionManager();
            $this->actionManagerClass = $actionManager;
        }
    }
public function generate ( $ actionManager ) { if ( $ actionManager instanceof ActionManagerInterface ) { $ this -> actionManager = $ actionManager ; $ this -> actionManagerClass = get_class ( $ this -> actionManager ) ; } if ( is_string ( $ actionManager ) && class_exists ( $ actionManager ) ) { $ this -> actionManager = new $ actionManager ( ) ; $ this -> actionManagerClass = $ actionManager ; } }
Generates the ActionManager object

@param mixed ActionManagerInterface|string $actionManager
Generates the ActionManager object