Skip to content

Commit

Permalink
Move to Bakkerij
Browse files Browse the repository at this point in the history
  • Loading branch information
bobmulder committed Jul 15, 2016
1 parent d608b4c commit 793c487
Show file tree
Hide file tree
Showing 13 changed files with 83 additions and 83 deletions.
22 changes: 11 additions & 11 deletions README.md
@@ -1,9 +1,9 @@
# Notifier plugin for CakePHP

[![Travis](https://img.shields.io/travis/cakeplugins/notifier.svg?style=flat-square)](https://travis-ci.org/cakeplugins/notifier)
[![Packagist](https://img.shields.io/packagist/dt/cakemanager/cakephp-notifier.svg?style=flat-square)](https://packagist.org/packages/cakeplugins/notifier)
[![Packagist](https://img.shields.io/packagist/v/cakeplugins/notifier.svg?style=flat-square)](https://packagist.org/packages/cakeplugins/notifier)
[![Gitter](https://img.shields.io/gitter/room/cakeplugins/notifier.js.svg?style=flat-square)](https://gitter.im/cakeplugins/notifier)
[![Travis](https://img.shields.io/travis/bakkerij/notifier.svg?style=flat-square)](https://travis-ci.org/bakkerij/notifier)
[![Packagist](https://img.shields.io/packagist/dt/cakemanager/cakephp-notifier.svg?style=flat-square)](https://packagist.org/packages/bakkerij/notifier)
[![Packagist](https://img.shields.io/packagist/v/bakkerij/notifier.svg?style=flat-square)](https://packagist.org/packages/bakkerij/notifier)
[![Gitter](https://img.shields.io/gitter/room/bakkerij/notifier.js.svg?style=flat-square)](https://gitter.im/bakkerij/notifier)

This plugin allows you to integrate a simple notification system into your application.

Expand All @@ -14,19 +14,19 @@ You can install this plugin into your CakePHP application using [composer](http:
The recommended way to install this plugin as composer package is:

```
composer require cakeplugins/notifier
composer require bakkerij/notifier
```

Now load the plugin via the following command:

```
bin/cake plugin install -b Notifier
bin/cake plugin load -b Bakkerij/Notifier
```

After loading the plugin you need to migrate the tables for the plugin using:

```
bin/cake migrations migrate -p Notifier
bin/cake migrations migrate -p Bakkerij/Notifier
```

## Sending notifications
Expand Down Expand Up @@ -178,7 +178,7 @@ The `NotificationManager` is the Manager of the plugin. You can get an instance
NotificationManager::instance();
```

The `NotificationManager` has the following namespace: `CakePlugins\Notifier\Utility\NotificationManager`.
The `NotificationManager` has the following namespace: `Bakkerij\Notifier\Utility\NotificationManager`.

The manager has the following methods available:

Expand All @@ -190,13 +190,13 @@ The manager has the following methods available:

## Notifier Component

The `CakePlugins/Notifier.Notifier` component can be used in Controllers:
The `Bakkerij/Notifier.Notifier` component can be used in Controllers:

```php
public function initialize()
{
parent::initialize();
$this->loadComponent('CakePlugins/Notifier.Notifier');
$this->loadComponent('Bakkerij/Notifier.Notifier');
}
```

Expand All @@ -209,6 +209,6 @@ The component has the following methods available:

## Keep in touch

If you need some help or got ideas for this plugin, feel free to chat at [Gitter](https://gitter.im/cakeplugins/notifier).
If you need some help or got ideas for this plugin, feel free to chat at [Gitter](https://gitter.im/bakkerij/notifier).

Pull Requests are always more than welcome!
8 changes: 4 additions & 4 deletions config/Migrations/20150612200406_notifier_initial.php
@@ -1,14 +1,14 @@
<?php
/**
* CakeManager (http://cakemanager.org)
* Copyright (c) http://cakemanager.org
* Bakkerij (https://github.com/bakkerij)
* Copyright (c) https://github.com/bakkerij
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) http://cakemanager.org
* @link http://cakemanager.org CakeManager Project
* @copyright Copyright (c) https://github.com/bakkerij
* @link https://github.com/bakkerij Bakkerij Project
* @since 1.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
Expand Down
8 changes: 4 additions & 4 deletions config/Migrations/20150716091509_tracking_id.php
@@ -1,14 +1,14 @@
<?php
/**
* CakeManager (http://cakemanager.org)
* Copyright (c) http://cakemanager.org
* Bakkerij (https://github.com/bakkerij)
* Copyright (c) https://github.com/bakkerij
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) http://cakemanager.org
* @link http://cakemanager.org CakeManager Project
* @copyright Copyright (c) https://github.com/bakkerij
* @link https://github.com/bakkerij Bakkerij Project
* @since 1.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
Expand Down
8 changes: 4 additions & 4 deletions config/bootstrap.php
@@ -1,14 +1,14 @@
<?php
/**
* CakeManager (http://cakemanager.org)
* Copyright (c) http://cakemanager.org
* Bakkerij (https://github.com/bakkerij)
* Copyright (c) https://github.com/bakkerij
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) http://cakemanager.org
* @link http://cakemanager.org CakeManager Project
* @copyright Copyright (c) https://github.com/bakkerij
* @link https://github.com/bakkerij Bakkerij Project
* @since 1.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
Expand Down
18 changes: 9 additions & 9 deletions src/Controller/Component/NotifierComponent.php
@@ -1,20 +1,20 @@
<?php
/**
* CakeManager (http://cakemanager.org)
* Copyright (c) http://cakemanager.org
* Bakkerij (https://github.com/bakkerij)
* Copyright (c) https://github.com/bakkerij
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) http://cakemanager.org
* @link http://cakemanager.org CakeManager Project
* @copyright Copyright (c) https://github.com/bakkerij
* @link https://github.com/bakkerij Bakkerij Project
* @since 1.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace CakePlugins\Notifier\Controller\Component;
namespace Bakkerij\Notifier\Controller\Component;

use CakePlugins\Notifier\Utility\NotificationManager;
use Bakkerij\Notifier\Utility\NotificationManager;
use Cake\Controller\Component;
use Cake\Core\Configure;
use Cake\ORM\TableRegistry;
Expand Down Expand Up @@ -97,7 +97,7 @@ public function getNotifications($userId = null, $state = null)
$userId = $this->Controller->Auth->user('id');
}

$model = TableRegistry::get('CakePlugins/Notifier.Notifications');
$model = TableRegistry::get('Bakkerij/Notifier.Notifications');

$query = $model->find()->where(['Notifications.user_id' => $userId])->order(['created' => 'desc']);

Expand Down Expand Up @@ -139,7 +139,7 @@ public function countNotifications($userId = null, $state = null)
$userId = $this->Controller->Auth->user('id');
}

$model = TableRegistry::get('CakePlugins/Notifier.Notifications');
$model = TableRegistry::get('Bakkerij/Notifier.Notifications');

$query = $model->find()->where(['Notifications.user_id' => $userId]);

Expand All @@ -166,7 +166,7 @@ public function markAsRead($notificationId = null, $user = null)
$user = $this->Controller->Auth->user('id');
}

$model = TableRegistry::get('CakePlugins/Notifier.Notifications');
$model = TableRegistry::get('Bakkerij/Notifier.Notifications');

if (!$notificationId) {
$query = $model->find('all')->where([
Expand Down
10 changes: 5 additions & 5 deletions src/Model/Entity/Notification.php
@@ -1,18 +1,18 @@
<?php
/**
* CakeManager (http://cakemanager.org)
* Copyright (c) http://cakemanager.org
* Bakkerij (https://github.com/bakkerij)
* Copyright (c) https://github.com/bakkerij
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) http://cakemanager.org
* @link http://cakemanager.org CakeManager Project
* @copyright Copyright (c) https://github.com/bakkerij
* @link https://github.com/bakkerij Bakkerij Project
* @since 1.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace CakePlugins\Notifier\Model\Entity;
namespace Bakkerij\Notifier\Model\Entity;

use Cake\Core\Configure;
use Cake\ORM\Entity;
Expand Down
10 changes: 5 additions & 5 deletions src/Model/Table/NotificationsTable.php
@@ -1,18 +1,18 @@
<?php
/**
* CakeManager (http://cakemanager.org)
* Copyright (c) http://cakemanager.org
* Bakkerij (https://github.com/bakkerij)
* Copyright (c) https://github.com/bakkerij
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) http://cakemanager.org
* @link http://cakemanager.org CakeManager Project
* @copyright Copyright (c) https://github.com/bakkerij
* @link https://github.com/bakkerij Bakkerij Project
* @since 1.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace CakePlugins\Notifier\Model\Table;
namespace Bakkerij\Notifier\Model\Table;

use Cake\ORM\RulesChecker;
use Cake\ORM\Table;
Expand Down
12 changes: 6 additions & 6 deletions src/Utility/NotificationManager.php
@@ -1,18 +1,18 @@
<?php
/**
* CakeManager (http://cakemanager.org)
* Copyright (c) http://cakemanager.org
* Bakkerij (https://github.com/bakkerij)
* Copyright (c) https://github.com/bakkerij
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) http://cakemanager.org
* @link http://cakemanager.org CakeManager Project
* @copyright Copyright (c) https://github.com/bakkerij
* @link https://github.com/bakkerij Bakkerij Project
* @since 1.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace CakePlugins\Notifier\Utility;
namespace Bakkerij\Notifier\Utility;

use Cake\Core\Configure;
use Cake\Core\Plugin;
Expand Down Expand Up @@ -75,7 +75,7 @@ public static function instance($manager = null)
*/
public function notify($data)
{
$model = TableRegistry::get('CakePlugins/Notifier.Notifications');
$model = TableRegistry::get('Bakkerij/Notifier.Notifications');

$_data = [
'users' => [],
Expand Down
10 changes: 5 additions & 5 deletions tests/Fixture/NotificationsFixture.php
@@ -1,18 +1,18 @@
<?php
/**
* CakeManager (http://cakemanager.org)
* Copyright (c) http://cakemanager.org
* Bakkerij (https://github.com/bakkerij)
* Copyright (c) https://github.com/bakkerij
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) http://cakemanager.org
* @link http://cakemanager.org CakeManager Project
* @copyright Copyright (c) https://github.com/bakkerij
* @link https://github.com/bakkerij Bakkerij Project
* @since 1.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace CakePlugins\Notifier\Test\Fixture;
namespace Bakkerij\Notifier\Test\Fixture;

use Cake\TestSuite\Fixture\TestFixture;

Expand Down
18 changes: 9 additions & 9 deletions tests/TestCase/Controller/Component/NotifierComponentTest.php
@@ -1,21 +1,21 @@
<?php
/**
* CakeManager (http://cakemanager.org)
* Copyright (c) http://cakemanager.org
* Bakkerij (https://github.com/bakkerij)
* Copyright (c) https://github.com/bakkerij
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) http://cakemanager.org
* @link http://cakemanager.org CakeManager Project
* @copyright Copyright (c) https://github.com/bakkerij
* @link https://github.com/bakkerij Bakkerij Project
* @since 1.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace CakePlugins\Notifier\Test\TestCase\Controller\Component;
namespace Bakkerij\Notifier\Test\TestCase\Controller\Component;

use CakePlugins\Notifier\Controller\Component\NotifierComponent;
use CakePlugins\Notifier\Utility\NotificationManager;
use Bakkerij\Notifier\Controller\Component\NotifierComponent;
use Bakkerij\Notifier\Utility\NotificationManager;
use Cake\Controller\ComponentRegistry;
use Cake\Network\Request;
use Cake\Network\Response;
Expand All @@ -29,15 +29,15 @@ class NotifierComponentTest extends TestCase
{

public $fixtures = [
'plugin.cakePlugins\Notifier.notifications'
'plugin.bakkerij\Notifier.notifications'
];

public function setUp()
{
parent::setUp();

$this->Manager = NotificationManager::instance();
$this->Model = TableRegistry::get('CakePlugins/Notifier.Notifications');
$this->Model = TableRegistry::get('Bakkerij/Notifier.Notifications');

// Setup our component and fake the controller
$request = new Request();
Expand Down
16 changes: 8 additions & 8 deletions tests/TestCase/Model/Table/NotificationsTableTest.php
@@ -1,20 +1,20 @@
<?php
/**
* CakeManager (http://cakemanager.org)
* Copyright (c) http://cakemanager.org
* Bakkerij (https://github.com/bakkerij)
* Copyright (c) https://github.com/bakkerij
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) http://cakemanager.org
* @link http://cakemanager.org CakeManager Project
* @copyright Copyright (c) https://github.com/bakkerij
* @link https://github.com/bakkerij Bakkerij Project
* @since 1.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace CakePlugins\Notifier\Test\TestCase\Model\Table;
namespace Bakkerij\Notifier\Test\TestCase\Model\Table;

use CakePlugins\Notifier\Utility\NotificationManager;
use Bakkerij\Notifier\Utility\NotificationManager;
use Cake\ORM\TableRegistry;
use Cake\TestSuite\TestCase;

Expand All @@ -25,13 +25,13 @@ class NotificationsTableTest extends TestCase
{

public $fixtures = [
'plugin.cakePlugins\Notifier.notifications',
'plugin.bakkerij\Notifier.notifications',
];

public function setUp()
{
parent::setUp();
$this->Notifications = TableRegistry::get('CakePlugins/Notifier.Notifications');
$this->Notifications = TableRegistry::get('Bakkerij/Notifier.Notifications');
}

public function tearDown()
Expand Down

0 comments on commit 793c487

Please sign in to comment.