Skip to content

Commit

Permalink
[PageFlow] Renamed the FSMBuilder class to PageFlowGenerator. (Issue p…
Browse files Browse the repository at this point in the history
  • Loading branch information
iteman committed Sep 18, 2012
1 parent 9e47e20 commit 6167d29
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Piece/Flow/PageFlow/PageFlowFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ public function create($definitionFile, ActionInvoker $actionInvoker)
{
$pageFlow = new PageFlow();
$pageFlow->setActionInvoker($actionInvoker);
$fsmBuilder = new FSMBuilder($pageFlow, $definitionFile);
$fsmBuilder->build();
$pageFlowGenerator = new PageFlowGenerator($pageFlow, $definitionFile);
$pageFlowGenerator->build();

return $pageFlow;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,21 @@
namespace Piece\Flow\PageFlow;

use Stagehand\FSM\Event;
use Stagehand\FSM\FSMBuilder;
use Stagehand\FSM\State;
use Symfony\Component\Config\Definition\Processor;
use Symfony\Component\Yaml\Yaml;

/**
* The FSM builder.
* The configuration generator for PageFlow objects.
*
* @package Piece_Flow
* @copyright 2007-2008, 2012 KUBO Atsuhiro <[email protected]>
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @version Release: @package_version@
* @since Class available since Release 1.14.0
*/
class FSMBuilder
class PageFlowGenerator
{
/**
* @var \Piece\Flow\PageFlow\PageFlow
Expand Down Expand Up @@ -85,7 +86,7 @@ public function __construct(PageFlow $pageFlow, $definitionFile)

$this->definitionFile = $definitionFile;
$this->pageFlow = $pageFlow;
$this->fsmBuilder = new \Stagehand\FSM\FSMBuilder();
$this->fsmBuilder = new FSMBuilder();
}

/**
Expand Down

0 comments on commit 6167d29

Please sign in to comment.