Skip to content

Make structure of classes compatible with PSR-4 #195

@andergmartins

Description

@andergmartins

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions