Skip to content

Commit

Permalink
Merge pull request #37 from UTCWeb/feature/UTCE-34-Composer-vendor-dir-b
Browse files Browse the repository at this point in the history
UTCE: Repackage the plugin dependency in src vs composer requirement.
  • Loading branch information
UTCGilligan authored Mar 28, 2023
2 parents 9303f47 + 0430a59 commit 8c9e09a
Show file tree
Hide file tree
Showing 5 changed files with 411 additions and 86 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
phpcs.xml
phpunit.xml
Thumbs.db
wp-templater-1.0.1/
wp-cli.local.yml
node_modules/
vendor/
Expand Down
13 changes: 0 additions & 13 deletions composer.json

This file was deleted.

70 changes: 0 additions & 70 deletions composer.lock

This file was deleted.

8 changes: 6 additions & 2 deletions utc-email-custom-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,12 @@ function utcblogs_newsletter_deactivate() {
* composer require jozoor/wp-templater
*/

require_once __DIR__ . '/vendor/autoload.php';// via Composer
//require_once __DIR__ . '/wp-templater-1.0.1/src/Templater.php';// via local plugin; for local dev only
/* via Composer
if ( is_readable( __DIR__ . '/vendor/autoload.php' ) ) {
require __DIR__ . '/vendor/autoload.php';
}
*/
require_once __DIR__ . '/wp-templater-1.0.1/src/Templater.php';// via local plugin; for local dev only

use JO\Module\Templater\Templater;

Expand Down
Loading

0 comments on commit 8c9e09a

Please sign in to comment.