-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed serialization context of article and article-page (#118)
- Loading branch information
1 parent
48a8251
commit a905e5b
Showing
8 changed files
with
140 additions
and
37 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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of Sulu. | ||
* | ||
* (c) MASSIVE ART WebServices GmbH | ||
* | ||
* This source file is subject to the MIT license that is bundled | ||
* with this source code in the file LICENSE. | ||
*/ | ||
|
||
namespace Sulu\Bundle\ArticleBundle\Exception; | ||
|
||
/** | ||
* Thrown when article-page not found in article. | ||
*/ | ||
class ArticlePageNotFoundException extends \Exception | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
private $pageUuid; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
private $articleUuid; | ||
|
||
/** | ||
* @param string $pageUuid | ||
* @param string $articleUuid | ||
*/ | ||
public function __construct($pageUuid, $articleUuid) | ||
{ | ||
parent::__construct(sprintf('Page "%s" not found in article "%s".', $pageUuid, $articleUuid)); | ||
$this->pageUuid = $pageUuid; | ||
$this->articleUuid = $articleUuid; | ||
} | ||
|
||
/** | ||
* Returns page-uuid. | ||
* | ||
* @return string | ||
*/ | ||
public function getPageUuid() | ||
{ | ||
return $this->pageUuid; | ||
} | ||
|
||
/** | ||
* Returns article-uuid. | ||
* | ||
* @return string | ||
*/ | ||
public function getArticleUuid() | ||
{ | ||
return $this->articleUuid; | ||
} | ||
} |
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
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
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