-
-
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/4.0.4' into v4
- Loading branch information
Showing
12 changed files
with
1,229 additions
and
330 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
Large diffs are not rendered by default.
Oops, something went wrong.
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