src/Logger.php
private static function _crateLogsFolder()
    {
        // If folder doesn't exist attempt to create it
        if (!file_exists(self::LOGS_FOLDER_PATH)) {
            mkdir(self::LOGS_FOLDER_PATH, 0755, true);
            $htaccessHandler = fopen(self::LOGS_FOLDER_PATH . '.htaccess', 'w');
            fwrite($htaccessHandler, 'deny from all');
            fclose($htaccessHandler);
        }
    }
private static function _crateLogsFolder()
    {
        // If folder doesn't exist attempt to create it
        if (!file_exists(self::LOGS_FOLDER_PATH)) {
            mkdir(self::LOGS_FOLDER_PATH, 0755, true);
            $htaccessHandler = fopen(self::LOGS_FOLDER_PATH . '.htaccess', 'w');
            fwrite($htaccessHandler, 'deny from all');
            fclose($htaccessHandler);
        }
    }
private static function _crateLogsFolder ( ) { // If folder doesn't exist attempt to create it if ( ! file_exists ( self :: LOGS_FOLDER_PATH ) ) { mkdir ( self :: LOGS_FOLDER_PATH , 0755 , true ) ; $ htaccessHandler = fopen ( self :: LOGS_FOLDER_PATH . '.htaccess' , 'w' ) ; fwrite ( $ htaccessHandler , 'deny from all' ) ; fclose ( $ htaccessHandler ) ; } }
Create LogsFolder if not exist
This method will create a .htaccess to deny access to logfiles
Create LogsFolder if not exist This method will create a . htaccess to deny access to logfiles