-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restructured the package. This version is not backward compatible.
- Loading branch information
Showing
10 changed files
with
186 additions
and
195 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
namespace Quintype\Seo; | ||
|
||
class Seo | ||
{ | ||
public function __construct($config){ | ||
$this->config = $config; | ||
} | ||
public function home($pageType){ | ||
return new Home($this->config, $pageType); | ||
} | ||
|
||
public function search($query){ | ||
return new Search($query); | ||
} | ||
|
||
public function section($pageType, $sectionName, $sectionId){ | ||
return new Section($this->config, $pageType, $sectionName, $sectionId); | ||
} | ||
|
||
public function staticPage($title){ | ||
return new StaticPage($title); | ||
} | ||
|
||
public function story($pageType, $story){ | ||
return new Story($this->config, $pageType, $story); | ||
} | ||
|
||
public function storyElement($pageType, $story, $element){ | ||
return new StoryElement($this->config, $pageType, $story, $element); | ||
} | ||
|
||
public function tag($tag){ | ||
return new Tag($this->config, $tag); | ||
} | ||
} |
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
Oops, something went wrong.