-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a8bf6a7
commit 46e8dc5
Showing
7 changed files
with
58 additions
and
94 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
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,31 @@ | ||
<?php | ||
|
||
namespace WPEmergeTheme\Theme; | ||
|
||
use WPEmerge\ServiceProviders\ServiceProviderInterface; | ||
|
||
/** | ||
* Provide theme dependencies. | ||
* | ||
* @codeCoverageIgnore | ||
*/ | ||
class ThemeServiceProvider implements ServiceProviderInterface { | ||
/** | ||
* {@inheritDoc} | ||
*/ | ||
public function register( $container ) { | ||
$container['wpemerge_theme.theme.theme'] = function( $c ) { | ||
return new Theme( $c[ WPEMERGE_APPLICATION_KEY ] ); | ||
}; | ||
|
||
$app = $container[ WPEMERGE_APPLICATION_KEY ]; | ||
$app->alias( 'theme', 'wpemerge_theme.theme.theme' ); | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
public function bootstrap( $container ) { | ||
// Nothing to bootstrap. | ||
} | ||
} |