Skip to content

Commit

Permalink
Replace namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
mishterk committed Nov 29, 2019
1 parent 010faac commit 3afef31
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions app/AssetResolver.php
@@ -1,7 +1,7 @@
<?php


namespace WPLMixTheme;
namespace WpTailwindCssThemeBoilerplate;


/**
Expand All @@ -13,7 +13,7 @@
* This class provides the functionality to resolve the file name using the generated manifest at
* /build/mix-manifest.json without having to specify the version hash.
*
* @package WPLMixTheme
* @package WpTailwindCssThemeBoilerplate
*/
class AssetResolver {

Expand Down
2 changes: 1 addition & 1 deletion app/AutoLoader.php
@@ -1,7 +1,7 @@
<?php


namespace WPLMixTheme;
namespace WpTailwindCssThemeBoilerplate;


/**
Expand Down
2 changes: 1 addition & 1 deletion app/View.php
@@ -1,7 +1,7 @@
<?php


namespace WPLMixTheme;
namespace WpTailwindCssThemeBoilerplate;


class View {
Expand Down
6 changes: 3 additions & 3 deletions functions.php
@@ -1,8 +1,8 @@
<?php


use WPLMixTheme\AutoLoader;
use WPLMixTheme\View;
use WpTailwindCssThemeBoilerplate\AutoLoader;
use WpTailwindCssThemeBoilerplate\View;


/*
Expand All @@ -17,7 +17,7 @@
require get_stylesheet_directory() . '/app/AutoLoader.php';
$loader = new AutoLoader();
$loader->register();
$loader->addNamespace( 'WPLMixTheme', get_stylesheet_directory() . '/app' );
$loader->addNamespace( 'WpTailwindCssThemeBoilerplate', get_stylesheet_directory() . '/app' );

View::$view_dir = get_stylesheet_directory() . '/templates/views';

Expand Down
2 changes: 1 addition & 1 deletion includes/scripts-and-styles.php
@@ -1,7 +1,7 @@
<?php


use WPLMixTheme\AssetResolver;
use WpTailwindCssThemeBoilerplate\AssetResolver;


add_action( 'wp_enqueue_scripts', function () {
Expand Down
2 changes: 1 addition & 1 deletion templates/partials/example.php
Expand Up @@ -11,7 +11,7 @@
<?php
// You may use 'views' to render your UI components. Views are designed for use anywhere as they, ideally, have
// no context-specific functionality – the simply render data handed to them as follows:
\WPLMixTheme\View::render( 'ExampleView', [
\WpTailwindCssThemeBoilerplate\View::render( 'ExampleView', [
'title' => 'Who am I?',
'text' => 'My name is Phil Kurth and I build themes and plugins for WordPress. You can learn more about me at <a href="https://philkurth.com.au/" target="_blank">philkurth.com.au</a>',
] ); ?>
Expand Down

0 comments on commit 3afef31

Please sign in to comment.