Skip to content

Commit 7a49d76

Browse files
committed
remove Autoloader.php and have only the one from composer
1 parent bbe48f4 commit 7a49d76

File tree

3 files changed

+2
-46
lines changed

3 files changed

+2
-46
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ use jblond\Diff\Renderer\Html\SideBySide;
3333

3434
// Installed via composer...
3535
require 'vendor/autoload.php';
36-
// ...or installed manually.
37-
require dirname(__FILE__).'/../lib/Autoloader.php';
38-
39-
new Autoloader();
4036

4137
$a = file_get_contents(dirname(__FILE__).'/a.txt');
4238
$b = file_get_contents(dirname(__FILE__).'/b.txt');

example/example.php

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

3-
use jblond\Autoloader;
43
use jblond\Diff;
54
use jblond\Diff\Renderer\Html\Inline;
65
use jblond\Diff\Renderer\Html\Unified as HtmlUnified;
@@ -9,8 +8,7 @@
98
use jblond\Diff\Renderer\Text\Unified;
109

1110
// Include and instantiate autoloader.
12-
require dirname(__FILE__) . '/../lib/Autoloader.php';
13-
new Autoloader();
11+
require '../vendor/autoload.php';
1412

1513
// Include two sample files for comparison.
1614
$a = file_get_contents(dirname(__FILE__) . '/a.txt');
@@ -66,6 +64,7 @@ function changeCSS(cssFile, cssLinkIndex) {
6664
'title2' => 'Custom title for version2',
6765
]);
6866
echo $diff->Render($renderer);
67+
$cli = new \jblond\cli\Cli();
6968
?>
7069

7170
<h2>HTML Inline Diff</h2>

lib/Autoloader.php

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)