Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit fea9b30

Browse files
committed
Updated namespace from 'Encrypt' to 'Keet\Encrypt\' to match autoloading config and bring it in line with other modules
1 parent e25e73a commit fea9b30

23 files changed

+59
-59
lines changed

config/local.config.php.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Encrypt;
3+
namespace Keet\Encrypt;
44

55
return [
66
'doctrine' => [

config/module.config.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
<?php
22

3-
namespace Encrypt;
3+
namespace Keet\Encrypt;
44

55
use Doctrine\Common\Annotations\AnnotationReader;
6-
use Encrypt\Adapter\EncryptionAdapter;
7-
use Encrypt\Adapter\HashingAdapter;
8-
use Encrypt\Factory\Adapter\EncryptionAdapterFactory;
9-
use Encrypt\Factory\Adapter\HashingAdapterFactory;
10-
use Encrypt\Factory\Service\EncryptionServiceFactory;
11-
use Encrypt\Factory\Service\HashingServiceFactory;
12-
use Encrypt\Factory\Subscriber\EncryptionSubscriberFactory;
13-
use Encrypt\Factory\Subscriber\HashingSubscriberFactory;
14-
use Encrypt\Service\EncryptionService;
15-
use Encrypt\Service\HashingService;
6+
use Keet\Encrypt\Adapter\EncryptionAdapter;
7+
use Keet\Encrypt\Adapter\HashingAdapter;
8+
use Keet\Encrypt\Factory\Adapter\EncryptionAdapterFactory;
9+
use Keet\Encrypt\Factory\Adapter\HashingAdapterFactory;
10+
use Keet\Encrypt\Factory\Service\EncryptionServiceFactory;
11+
use Keet\Encrypt\Factory\Service\HashingServiceFactory;
12+
use Keet\Encrypt\Factory\Subscriber\EncryptionSubscriberFactory;
13+
use Keet\Encrypt\Factory\Subscriber\HashingSubscriberFactory;
14+
use Keet\Encrypt\Service\EncryptionService;
15+
use Keet\Encrypt\Service\HashingService;
1616

1717
return [
1818
'doctrine_factories' => [

src/Adapter/EncryptionAdapter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
namespace Encrypt\Adapter;
3+
namespace Keet\Encrypt\Adapter;
44

5-
use Encrypt\Interfaces\EncryptionInterface;
5+
use Keet\Encrypt\Interfaces\EncryptionInterface;
66
use ParagonIE\ConstantTime\Binary;
77
use ParagonIE\Halite\Alerts\InvalidKey;
88
use ParagonIE\Halite\HiddenString;

src/Adapter/HashingAdapter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
namespace Encrypt\Adapter;
3+
namespace Keet\Encrypt\Adapter;
44

5-
use Encrypt\Interfaces\HashingInterface;
5+
use Keet\Encrypt\Interfaces\HashingInterface;
66
use ParagonIE\ConstantTime\Binary;
77
use ParagonIE\Halite\Alerts\InvalidKey;
88
use ParagonIE\Halite\HiddenString;

src/Annotation/Encrypted.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Encrypt\Annotation;
3+
namespace Keet\Encrypt\Annotation;
44

55
use Doctrine\Common\Annotations\Annotation\Target;
66

src/Annotation/Hashed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Encrypt\Annotation;
3+
namespace Keet\Encrypt\Annotation;
44

55
use Doctrine\Common\Annotations\Annotation\Target;
66

src/Exception/OptionsNotFoundException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Encrypt\Exception;
3+
namespace Keet\Encrypt\Exception;
44

55
class OptionsNotFoundException extends \Exception
66
{

src/Factory/Adapter/EncryptionAdapterFactory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace Encrypt\Factory\Adapter;
3+
namespace Keet\Encrypt\Factory\Adapter;
44

5-
use Encrypt\Adapter\EncryptionAdapter;
6-
use Encrypt\Exception\OptionsNotFoundException;
5+
use Keet\Encrypt\Adapter\EncryptionAdapter;
6+
use Keet\Encrypt\Exception\OptionsNotFoundException;
77
use Interop\Container\ContainerInterface;
88
use Zend\ServiceManager\Factory\FactoryInterface;
99

src/Factory/Adapter/HashingAdapterFactory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace Encrypt\Factory\Adapter;
3+
namespace Keet\Encrypt\Factory\Adapter;
44

5-
use Encrypt\Adapter\HashingAdapter;
6-
use Encrypt\Exception\OptionsNotFoundException;
5+
use Keet\Encrypt\Adapter\HashingAdapter;
6+
use Keet\Encrypt\Exception\OptionsNotFoundException;
77
use Interop\Container\ContainerInterface;
88
use Zend\ServiceManager\Factory\FactoryInterface;
99

src/Factory/Service/EncryptionServiceFactory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace Encrypt\Factory\Service;
3+
namespace Keet\Encrypt\Factory\Service;
44

5-
use Encrypt\Interfaces\EncryptionInterface;
6-
use Encrypt\Service\EncryptionService;
5+
use Keet\Encrypt\Interfaces\EncryptionInterface;
6+
use Keet\Encrypt\Service\EncryptionService;
77
use Exception;
88
use Interop\Container\ContainerInterface;
99
use Zend\ServiceManager\Factory\FactoryInterface;

src/Factory/Service/HashingServiceFactory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace Encrypt\Factory\Service;
3+
namespace Keet\Encrypt\Factory\Service;
44

5-
use Encrypt\Interfaces\HashingInterface;
6-
use Encrypt\Service\HashingService;
5+
use Keet\Encrypt\Interfaces\HashingInterface;
6+
use Keet\Encrypt\Service\HashingService;
77
use Exception;
88
use Interop\Container\ContainerInterface;
99
use Zend\ServiceManager\Factory\FactoryInterface;

src/Factory/Subscriber/EncryptionSubscriberFactory.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22

3-
namespace Encrypt\Factory\Subscriber;
3+
namespace Keet\Encrypt\Factory\Subscriber;
44

55
use Doctrine\Common\Annotations\AnnotationReader;
66
use Doctrine\Common\Annotations\Reader;
77
use DoctrineModule\Service\AbstractFactory;
8-
use Encrypt\Interfaces\EncryptionInterface;
9-
use Encrypt\Options\EncryptionOptions;
10-
use Encrypt\Subscriber\EncryptionSubscriber;
8+
use Keet\Encrypt\Interfaces\EncryptionInterface;
9+
use Keet\Encrypt\Options\EncryptionOptions;
10+
use Keet\Encrypt\Subscriber\EncryptionSubscriber;
1111
use Interop\Container\ContainerInterface;
1212
use Zend\ServiceManager\ServiceLocatorInterface;
1313

src/Factory/Subscriber/HashingSubscriberFactory.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?php
22

3-
namespace Encrypt\Factory\Subscriber;
3+
namespace Keet\Encrypt\Factory\Subscriber;
44

55
use Doctrine\Common\Annotations\AnnotationReader;
66
use Doctrine\Common\Annotations\Reader;
77
use DoctrineModule\Service\AbstractFactory;
8-
use Encrypt\Adapter\HashingAdapter;
9-
use Encrypt\Interfaces\HashingInterface;
10-
use Encrypt\Options\HashingOptions;
11-
use Encrypt\Subscriber\HashingSubscriber;
8+
use Keet\Encrypt\Adapter\HashingAdapter;
9+
use Keet\Encrypt\Interfaces\HashingInterface;
10+
use Keet\Encrypt\Options\HashingOptions;
11+
use Keet\Encrypt\Subscriber\HashingSubscriber;
1212
use Interop\Container\ContainerInterface;
1313
use Zend\ServiceManager\ServiceLocatorInterface;
1414

src/Interfaces/EncryptionInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Encrypt\Interfaces;
3+
namespace Keet\Encrypt\Interfaces;
44

55
interface EncryptionInterface
66
{

src/Interfaces/HashingInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Encrypt\Interfaces;
3+
namespace Keet\Encrypt\Interfaces;
44

55
interface HashingInterface
66
{

src/Interfaces/SaltInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Encrypt\Interfaces;
3+
namespace Keet\Encrypt\Interfaces;
44

55
interface SaltInterface
66
{

src/Module.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Encrypt;
3+
namespace Keet\Encrypt;
44

55
use Zend\ModuleManager\Feature\ConfigProviderInterface;
66

src/Options/EncryptionOptions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace Encrypt\Options;
3+
namespace Keet\Encrypt\Options;
44

55
use Doctrine\Common\Annotations\Reader;
6-
use Encrypt\Interfaces\EncryptionInterface;
6+
use Keet\Encrypt\Interfaces\EncryptionInterface;
77
use Zend\Stdlib\AbstractOptions;
88

99
class EncryptionOptions extends AbstractOptions

src/Options/HashingOptions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace Encrypt\Options;
3+
namespace Keet\Encrypt\Options;
44

55
use Doctrine\Common\Annotations\Reader;
6-
use Encrypt\Interfaces\HashingInterface;
6+
use Keet\Encrypt\Interfaces\HashingInterface;
77
use Zend\Stdlib\AbstractOptions;
88

99
class HashingOptions extends AbstractOptions

src/Service/EncryptionService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
namespace Encrypt\Service;
3+
namespace Keet\Encrypt\Service;
44

5-
use Encrypt\Interfaces\EncryptionInterface;
5+
use Keet\Encrypt\Interfaces\EncryptionInterface;
66

77
class EncryptionService
88
{

src/Service/HashingService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
namespace Encrypt\Service;
3+
namespace Keet\Encrypt\Service;
44

5-
use Encrypt\Interfaces\HashingInterface;
5+
use Keet\Encrypt\Interfaces\HashingInterface;
66

77
class HashingService
88
{

src/Subscriber/EncryptionSubscriber.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Encrypt\Subscriber;
3+
namespace Keet\Encrypt\Subscriber;
44

55
use Doctrine\Common\Annotations\Reader;
66
use Doctrine\Common\EventSubscriber;
@@ -10,8 +10,8 @@
1010
use Doctrine\ORM\Event\OnFlushEventArgs;
1111
use Doctrine\ORM\Event\PostFlushEventArgs;
1212
use Doctrine\ORM\Events;
13-
use Encrypt\Annotation\Encrypted;
14-
use Encrypt\Interfaces\EncryptionInterface;
13+
use Keet\Encrypt\Annotation\Encrypted;
14+
use Keet\Encrypt\Interfaces\EncryptionInterface;
1515

1616
class EncryptionSubscriber implements EventSubscriber
1717
{

src/Subscriber/HashingSubscriber.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<?php
22

3-
namespace Encrypt\Subscriber;
3+
namespace Keet\Encrypt\Subscriber;
44

55
use Doctrine\Common\Annotations\Reader;
66
use Doctrine\Common\EventSubscriber;
77
use Doctrine\Common\Persistence\ObjectManager;
88
use Doctrine\ORM\EntityManager;
99
use Doctrine\ORM\Event\OnFlushEventArgs;
1010
use Doctrine\ORM\Events;
11-
use Encrypt\Annotation\Hashed;
12-
use Encrypt\Interfaces\HashingInterface;
13-
use Encrypt\Interfaces\SaltInterface;
11+
use Keet\Encrypt\Annotation\Hashed;
12+
use Keet\Encrypt\Interfaces\HashingInterface;
13+
use Keet\Encrypt\Interfaces\SaltInterface;
1414

1515
class HashingSubscriber implements EventSubscriber
1616
{

0 commit comments

Comments
 (0)