forked from piece/piece-flow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PageFlow] changed the PageFlowGenerator::__construct() method to rec…
…eive any PageFlowInterface object as well as the page flow ID (Issue piece#4)
- Loading branch information
Showing
2 changed files
with
21 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
/** | ||
* PHP version 5.3 | ||
* | ||
* Copyright (c) 2012 KUBO Atsuhiro <[email protected]>, | ||
* Copyright (c) 2012-2013 KUBO Atsuhiro <[email protected]>, | ||
* All rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
|
@@ -29,7 +29,7 @@ | |
* POSSIBILITY OF SUCH DAMAGE. | ||
* | ||
* @package Piece_Flow | ||
* @copyright 2012 KUBO Atsuhiro <[email protected]> | ||
* @copyright 2012-2013 KUBO Atsuhiro <[email protected]> | ||
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License | ||
* @version Release: @package_version@ | ||
* @since File available since Release 2.0.0 | ||
|
@@ -39,7 +39,7 @@ | |
|
||
/** | ||
* @package Piece_Flow | ||
* @copyright 2012 KUBO Atsuhiro <[email protected]> | ||
* @copyright 2012-2013 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 2.0.0 | ||
|
@@ -60,12 +60,12 @@ public function __construct(PageFlowRegistry $pageFlowRegistry) | |
} | ||
|
||
/** | ||
* @param string $id | ||
* @return \Piece\Flow\PageFlow\PageFlow | ||
* @param string $id | ||
* @return \Piece\Flow\PageFlow\PageFlowInterface | ||
*/ | ||
public function create($id) | ||
{ | ||
$pageFlowGenerator = new PageFlowGenerator($id, $this->pageFlowRegistry); | ||
$pageFlowGenerator = new PageFlowGenerator(new PageFlow($id), $this->pageFlowRegistry); | ||
|
||
return $pageFlowGenerator->generate(); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters