Skip to content

1.11.0

Choose a tag to compare

@koriym koriym released this 10 Jul 09:09
· 34 commits to 1.x since this release
1a8e317

Added

  • Optional $tmpDir and $logDir constructor arguments on Meta (defaults unchanged: {appDir}/var/tmp/{context} and {appDir}/var/log/{context}) (#41)

Changed

  • Centralize directory creation and writability checks in ensureDir()
  • Default path segments use / (portable on Windows PHP)

Usage

// defaults
new Meta('MyVendor\\Project', 'prod-app', $appDir);

// overrides (resolved paths only; env is the app's job)
new Meta('MyVendor\\Project', 'prod-app', $appDir, '/var/tmp/my-app', '/var/log/my-app');

Full changelog

1.10.0...1.11.0