-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/5.0.1' into v5
- Loading branch information
Showing
10 changed files
with
82 additions
and
33 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
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,53 @@ | ||
<?php | ||
/** | ||
* Typogrify plugin for Craft CMS | ||
* | ||
* Typogrify prettifies your web typography by preventing ugly quotes and | ||
* 'widows' and more | ||
* | ||
* @link https://nystudio107.com/ | ||
* @copyright Copyright (c) nystudio107 | ||
*/ | ||
|
||
namespace nystudio107\typogrify\services; | ||
|
||
use yii\base\InvalidConfigException; | ||
|
||
/** | ||
* @author nystudio107 | ||
* @package Typogrify | ||
* @since 1.0.0 | ||
* | ||
* @property TypogrifyService $typogrify | ||
*/ | ||
trait ServicesTrait | ||
{ | ||
// Public Static Methods | ||
// ========================================================================= | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
public static function config(): array | ||
{ | ||
return [ | ||
'components' => [ | ||
'typogrify' => TypogrifyService::class, | ||
], | ||
]; | ||
} | ||
|
||
// Public Methods | ||
// ========================================================================= | ||
|
||
/** | ||
* Returns the typogrify service | ||
* | ||
* @return TypogrifyService The typogrify service | ||
* @throws InvalidConfigException | ||
*/ | ||
public function getTypogrify(): TypogrifyService | ||
{ | ||
return $this->get('typogrify'); | ||
} | ||
} |
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