Skip to content

Commit

Permalink
Merge branch '4.x' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
drmonkeyninja committed Jul 27, 2020
2 parents 4331c54 + 83d399e commit 540d0cd
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:-
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}
],
"require": {
"cakephp/cakephp": "~3.0",
"cakephp/cakephp": "~4.0",
"drmonkeyninja/social-share-url": "^1.0"
},
"autoload": {
Expand Down
16 changes: 16 additions & 0 deletions src/Plugin.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php
declare(strict_types=1);

namespace SocialShare;

use Cake\Core\BasePlugin;
use Cake\Core\PluginApplicationInterface;
use Cake\Http\MiddlewareQueue;
use Cake\Routing\RouteBuilder;

/**
* Plugin for Foo
*/
class Plugin extends BasePlugin
{
}

0 comments on commit 540d0cd

Please sign in to comment.