diff --git a/README.md b/README.md index 3565f24..fa1a13b 100644 --- a/README.md +++ b/README.md @@ -7,16 +7,16 @@ The aim of the plugin is to keep things simple. It doesn't come packaged with an Social Share currently supports Delicious, Digg, Evernote, Facebook, Friend Feed, Google Bookmarks, Google+, LinkedIn, Newsvine, Pinterest, Pocket, Reddit Slashdot, simple email, StumbleUpon, Technorati, Tumblr, Twitter and WhatsApp. -**Note**: This branch is for CakePHP 3.x. +**Note**: This branch is for CakePHP 4.x. ## Installation -Install using composer: `composer require drmonkeyninja/cakephp-social-share:3.0.*` +Install using composer: `composer require drmonkeyninja/cakephp-social-share:4.*` -Then add the following line to your bootstrap.php to load the plugin. +Then add the following line to your Application.php file to load the plugin. ```php -Plugin::load('SocialShare'); +$this->addPlugin(\SocialShare\Plugin::class); ``` Also don't forget to add the helper in your `AppView`:- diff --git a/composer.json b/composer.json index 919888e..433e2e1 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ } ], "require": { - "cakephp/cakephp": "~3.0", + "cakephp/cakephp": "~4.0", "drmonkeyninja/social-share-url": "^1.0" }, "autoload": { diff --git a/src/Plugin.php b/src/Plugin.php new file mode 100644 index 0000000..a48b911 --- /dev/null +++ b/src/Plugin.php @@ -0,0 +1,16 @@ +