Skip to content

Commit e6d73d8

Browse files
author
Roman Syroeshko
committed
Removed custom autoloader.
1 parent 95c0971 commit e6d73d8

File tree

7 files changed

+5
-120
lines changed

7 files changed

+5
-120
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ Use the correspondent `getAlignment` and `setAlignment` methods instead. - @Roma
2626
### Removed
2727
- `PhpOffice\PhpWord\Style\Alignment`. Style properties, which previously stored instances of this class, now deal with strings.
2828
In each case set of available string values is defined by the correspondent simple type. - @RomanSyroeshko
29-
- Manual installation option. To install PHPWord use Composer since now. - @RomanSyroeshko
29+
- Manual installation support. Since the release we have dependencies on third party libraries,
30+
so installation via ZIP-archive download is not an option anymore. To install PHPWord use [Composer](https://getcomposer.org/).
31+
We also removed `PhpOffice\PhpWord\Autoloader`, because the latter change made it completely useless.
32+
Autoloaders provided by Composer are in use now (see `bootstrap.php`). - @RomanSyroeshko
33+
3034

3135

3236
0.12.1 (30 August 2015)

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ The following is a basic usage example of the PHPWord library.
8383
```php
8484
<?php
8585
require_once 'bootstrap.php';
86-
\PhpOffice\PhpWord\Autoloader::register();
8786

8887
// Creating the new document...
8988
$phpWord = new \PhpOffice\PhpWord\PhpWord();

docs/general.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ folder <https://github.com/PHPOffice/PHPWord/tree/master/samples/>`__.
1414
1515
<?php
1616
require_once 'bootstrap.php';
17-
\PhpOffice\PhpWord\Autoloader::register();
1817
1918
// Creating the new document...
2019
$phpWord = new \PhpOffice\PhpWord\PhpWord();

samples/Sample_Header.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22
require_once __DIR__ . '/../bootstrap.php';
33

4-
use PhpOffice\PhpWord\Autoloader;
54
use PhpOffice\PhpWord\Settings;
65

76
date_default_timezone_set('UTC');
@@ -11,7 +10,6 @@
1110
define('SCRIPT_FILENAME', basename($_SERVER['SCRIPT_FILENAME'], '.php'));
1211
define('IS_INDEX', SCRIPT_FILENAME == 'index');
1312

14-
Autoloader::register();
1513
Settings::loadConfig();
1614

1715
// Set writers

src/PhpWord/Autoloader.php

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

tests/PhpWord/AutoloaderTest.php

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

tests/bootstrap.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,3 @@
3737
}
3838
}
3939
});
40-
41-
\PhpOffice\PhpWord\Autoloader::register();

0 commit comments

Comments
 (0)