Skip to content

Commit 859b596

Browse files
committed
Namespace added
1 parent 28ae68f commit 859b596

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

examples/example.php

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

3-
include_once 'cryptor.php';
3+
use ioncube\phpOpensslCryptor\Cryptor;
44

55
$data = 'Good things come in small packages.';
66
$key = '9901:io=[<>602vV03&Whb>9J&M~Oq';

src/Cryptor.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
* OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2424
*/
2525

26+
namespace ioncube\phpOpensslCryptor;
27+
2628
class Cryptor
2729
{
2830
private $cipher_algo;

tests/BasicCryptTest.php

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

3-
require_once __DIR__ . '/../cryptor.php';
3+
use ioncube\phpOpensslCryptor\Cryptor;
44

55
$data = 'Good things come in small packages.';
66
$key = '9901:io=[<>602vV03&Whb>9J&M~Oq';

0 commit comments

Comments
 (0)