Skip to content

Commit

Permalink
Merge pull request #1 from leroy-merlin-br/update-package
Browse files Browse the repository at this point in the history
Update package to use PSR-4 namespaces
  • Loading branch information
ravanscafi committed Dec 9, 2020
2 parents ca03a05 + f530f23 commit 7b1f0d0
Show file tree
Hide file tree
Showing 35 changed files with 1,057 additions and 1,249 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
composer.lock
vendor
30 changes: 0 additions & 30 deletions archive-assembly.xml

This file was deleted.

5 changes: 1 addition & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@
"autoload": {
"psr-4": {
"BazaarvoiceSeo\\": "src/"
},
"files": [
"src/bvseosdk.php"
]
}
},
"autoload-dev": {
"psr-4": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
//Please provide cloud_key, bv_root_folder and subject_id
require('src/bvseosdk.php');
require('vendor/autoload.php');
$bv = new BazaarvoiceSeo\BV(array(
'bv_root_folder' => '',
'subject_id' => '',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
//Please provide cloud_key, bv_root_folder and subject_id
require('src/bvseosdk.php');
require('vendor/autoload.php');
$bv = new BazaarvoiceSeo\BV(array(
'bv_root_folder' => '',
'subject_id' => '',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
//Please provide cloud_key, bv_root_folder and subject_id
require('src/bvseosdk.php');
require('vendor/autoload.php');
$bv = new BazaarvoiceSeo\BV(array(
'bv_root_folder' => '',
'subject_id' => '',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
//Please provide cloud_key, bv_root_folder and subject_id
require('src/bvseosdk.php');
$bv = new BazaarvoiceSeo\BV(array(
require('vendor/autoload.php');
$bv = new BazaarvoiceSeo\BV(array(
'bv_root_folder' => '',
'subject_id' => '',
'cloud_key' => '',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
//Please provide cloud_key, bv_root_folder and subject_id
require('src/bvseosdk.php');
require('vendor/autoload.php');
$bv = new BazaarvoiceSeo\BV(array(
'bv_root_folder' => '',
'subject_id' => '',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
//Please provide cloud_key and bv_root_folder
require('src/bvseosdk.php');

require('vendor/autoload.php');
$bv = new BazaarvoiceSeo\BV(array(
'bv_root_folder' => '',
'cloud_key' => '',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
//Please provide cloud_key, bv_root_folder and product_id
require('src/bvseosdk.php');

require('vendor/autoload.php');
$bv = new BazaarvoiceSeo\BV(array(
'bv_root_folder' => '',
'subject_id' => '',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
//Please provide cloud_key, bv_root_folder and subject_id
require('src/bvseosdk.php');
require('vendor/autoload.php');
$bv = new BazaarvoiceSeo\BV(array(
'bv_root_folder' => '',
'subject_id' => '',
Expand Down
18 changes: 18 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
beStrictAboutTestsThatDoNotTestAnything="false"
colors="true"
bootstrap="tests/config.php"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
>
<testsuites>
<testsuite name="unit">
<directory suffix="Test.php">tests</directory>
</testsuite>
</testsuites>
</phpunit>
108 changes: 0 additions & 108 deletions pom.xml

This file was deleted.

Loading

0 comments on commit 7b1f0d0

Please sign in to comment.