Skip to content

PhpSlides version 1.0.0 release

Compare
Choose a tag to compare
@dconco dconco released this 10 Dec 14:24
· 13 commits to master since this release
e84d4a3

feat: Update configuration and file handling

This commit updates the configuration settings in the .env file to use
consistent spacing and adds new environment variables for the default
host page. Additionally, it modifies the RouteController class to
improve file handling by using the file_get_contents function instead of
include, making it easier to manipulate content before output.

The commit also includes modifications to the Route class:

  • It introduces a new static variable, $root_dir, to store the root
    directory path.
  • It adds a check for the presence of the 'fileinfo' extension and
    throws an exception if it is not enabled.
  • It refactors the file_type method to utilize the finfo_file function
    instead of mime_content_type for improved performance.
  • It updates the handling of file extensions for better content type
    detection.
  • It sets the $log and $root_dir variables within the class constructor
    for consistency.

The commit also includes minor updates to other files, such as the
README.md and composer.json, correcting typos and improving clarity.

These changes enhance the configuration and file handling aspects of the
project, improving efficiency and providing more control over the
output. No issues are associated with this commit at this time.

References: None