You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For our libraries we use the pattern PSR-4.
In short, instead of the internal classes be located at ./includes and each file having the "Embed" prefix, we should create a "embedpress" folder inside the library dir, and rename the files:
For our libraries we use the pattern PSR-4.
In short, instead of the internal classes be located at ./includes and each file having the "Embed" prefix, we should create a "embedpress" folder inside the library dir, and rename the files:
includes/EmbedPress.php --> library/embedpress/Core.php
includes/EmbedPressLoader.php --> library/embedpress/Loader.php,
etc.
Another change will be to use PHP namespaces for that classes:
Alledia\EmbedPress\Loader for example, instead of EmbedPressLoader
That allow us to use the composer autoloader to load the classes without the need to include each one.
The text was updated successfully, but these errors were encountered: