Skip to content

Commit

Permalink
Merge pull request #72 from laminas/1.1.x-merge-up-into-1.2.x_5f5f7cc…
Browse files Browse the repository at this point in the history
…c483ad2.73156038

Merge release 1.1.1 into 1.2.x

Signed-Off-By: Matthew Weier O'Phinney <matthew@weierophinney.net>
  • Loading branch information
weierophinney committed Sep 14, 2020
2 parents 646581b + aeab008 commit 466d07d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Expand Up @@ -24,6 +24,24 @@ All notable changes to this project will be documented in this file, in reverse

- Nothing.

## 1.1.1 - 2020-09-14

### Fixed

- [#71](https://github.com/laminas/laminas-zendframework-bridge/pull/71) fixes detection of the vendor directory when the `COMPOSER_VENDOR_DIR` env variable is missing or empty. Previously, this could lead to scenarios where a non-existent path was used for finding the bridge autoloader.

-----

### Release Notes for [1.1.1](https://github.com/laminas/laminas-zendframework-bridge/milestone/5)

- Total issues resolved: **0**
- Total pull requests resolved: **1**
- Total contributors: **1**

#### Bug

- [71: Verify `COMPOSER&#95;VENDOR&#95;DIR` in conditional](https://github.com/laminas/laminas-zendframework-bridge/pull/71) thanks to @aaronbushnell

## 1.1.0 - 2020-08-18

### Added
Expand Down
2 changes: 1 addition & 1 deletion src/Autoloader.php
Expand Up @@ -66,7 +66,7 @@ public static function load()
*/
private static function getClassLoader()
{
if (file_exists(getenv('COMPOSER_VENDOR_DIR') . '/autoload.php')) {
if (getenv('COMPOSER_VENDOR_DIR') && file_exists(getenv('COMPOSER_VENDOR_DIR') . '/autoload.php')) {
return include getenv('COMPOSER_VENDOR_DIR') . '/autoload.php';
}

Expand Down

0 comments on commit 466d07d

Please sign in to comment.