Skip to content

Conversation

@ryangjchandler
Copy link
Collaborator

@ryangjchandler ryangjchandler commented Aug 23, 2025

  • Removed $environment parameter from Phiki constructor.
    • This simplifies the internals a little and also makes for a cleaner API. I don't even imagine tonnes of people are using this as you'd lose support for a lot of default grammars and themes.
    • This was also designed as an internal abstraction for easier object sharing.
  • Renamed some methods added in a previous release.
  • Moved CommonMark related things into Phiki\Adapters\CommonMark namespace.
  • Removed getGrammarRepository() and getThemeRepository() methods.
    • These are now just public properties on the environment object instead which you can get via $phiki->environment().

@ryangjchandler ryangjchandler added the enhancement New feature or request label Aug 23, 2025
@ryangjchandler ryangjchandler merged commit 5d9cf60 into 2.x Aug 23, 2025
4 checks passed
@ryangjchandler ryangjchandler deleted the environment-objects branch August 23, 2025 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants