DataSift\Storyplayer\PlayerLib\Script_Player::play PHP Method

play() public method

public play ( StoryTeller $st, DataSift\Storyplayer\Injectables $injectables )
$st StoryTeller
$injectables DataSift\Storyplayer\Injectables
    public function play(StoryTeller $st, Injectables $injectables)
    {
        // we are playing this script
        $script = new Script($this->scriptFilename);
        // we're going to use this to play our setup and teardown phases
        $phasesPlayer = new PhaseGroup_Player();
        // run the phases
        $phasesPlayer->playPhases("Running script", $st, $injectables, $this->scriptPhases, $script);
        // all done
    }
Script_Player