Skip to content

Commit

Permalink
Fix autoload functionality (#15)
Browse files Browse the repository at this point in the history
* Fix autoload functionality

* Point init require to renamed file
  • Loading branch information
ksindi authored Nov 7, 2019
1 parent 32db1c4 commit 002b0cf
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ WORKDIR ${dir}

USER app

RUN composer require -o jwplayer/jwplatform
RUN composer require jwplayer/jwplatform

CMD [ "php", "examples/upload_video.php" ]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ PHP 5.6.0 and later.
You can install the bindings via [Composer](http://getcomposer.org/). Run the following command:

```bash
composer require -o jwplayer/jwplatform
composer require jwplayer/jwplatform
```

To use the bindings, use Composer's [autoload](https://getcomposer.org/doc/01-basic-usage.md#autoloading):
Expand Down
7 changes: 2 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "jwplayer/jwplatform",
"type": "library",
"description": "Official JW Player PHP API Adapter",
"version": "v1.6.2",
"description": "Official JW Player client",
"version": "v1.6.3",
"keywords": [
"jwplayer",
"jwplatform",
Expand All @@ -23,9 +23,6 @@
"php": ">=5.6.0",
"ext-curl": "*"
},
"config": {
"optimize-autoloader": true
},
"autoload": {
"psr-4": {
"Jwplayer\\": "src/"
Expand Down
2 changes: 1 addition & 1 deletion init.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php
// API client
require(dirname(__FILE__) . '/src/Client.php');
require(dirname(__FILE__) . '/src/JwplatformAPI.php');
2 changes: 1 addition & 1 deletion src/Client.php → src/JwplatformAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Jwplayer;

class JwplatformAPI {
private $_version = '1.6.2';
private $_version = '1.6.3';
private $_url = 'https://api.jwplatform.com/v1';
private $_library;

Expand Down

0 comments on commit 002b0cf

Please sign in to comment.