From 8590e36394ed11a2fcc78882e1e7595c576a1e4f Mon Sep 17 00:00:00 2001 From: Aravindo Wingeier Date: Tue, 25 Dec 2018 22:45:10 -0300 Subject: [PATCH] =?UTF-8?q?fix=20#71=20find=20config.php=20automatically?= =?UTF-8?q?=20in=20current=20and=20parent=20directori=E2=80=A6=20(#74)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix #71 find config.php automatically. in current and parent directories. Show error message if not found. --- CHANGELOG.md | 6 ++++-- src/boot.php | 43 +++++++++++++++++++++++++++++++++++++++++++ src/index.php | 9 +++------ src/json-api.php | 8 +++----- 4 files changed, 53 insertions(+), 13 deletions(-) create mode 100644 src/boot.php diff --git a/CHANGELOG.md b/CHANGELOG.md index e7314c2..7592b31 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,12 @@ # Change Log -All notable changes to this project will be documented in this file. +All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). -The format is based on [Keep a Changelog](http://keepachangelog.com/). ## [Unreleased] +### Changed +- find config.php automatically in current and parent directories. Show error message if not found. + ## [0.2.1] - 2018-07-01 ### Breaking Changes diff --git a/src/boot.php b/src/boot.php new file mode 100644 index 0000000..86ae958 --- /dev/null +++ b/src/boot.php @@ -0,0 +1,43 @@ +invoke($imapClient); // delete after each request $imapClient->delete_old_messages($config['delete_messages_older_than']); -?> \ No newline at end of file +?> diff --git a/src/json-api.php b/src/json-api.php index d4b8f54..3547a76 100644 --- a/src/json-api.php +++ b/src/json-api.php @@ -1,9 +1,7 @@ invoke($imapClient); $imapClient->delete_old_messages($config['delete_messages_older_than']); -?> \ No newline at end of file +?>