Skip to content

Conversation

anselmh
Copy link

@anselmh anselmh commented Sep 10, 2021

This targets #31.

Comment on lines +7 to +9
"psr-4": {
"Mzur\\KirbyCalendarPlugin\\": "src/"
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This won't initialize the plugin correctly, though, as the index.php is no longer executed. Instead, a files autoload section should work:

Suggested change
"psr-4": {
"Mzur\\KirbyCalendarPlugin\\": "src/"
}
"files": [
"index.php"
]

Also, the index.php will need a use statement for the Kirby class, similar to this one.

You could also add authors and support sections.

Could you please apply the changes and test them?

{
"name": "mzur/kirby-calendar-plugin",
"description": "A plugin for the Kirby CMS to easily implement an event calendar.",
"type": "composer-plugin",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"type": "composer-plugin",
"type": "library",

"name": "mzur/kirby-calendar-plugin",
"description": "A plugin for the Kirby CMS to easily implement an event calendar.",
"type": "composer-plugin",
"license": "GNU GPL v2",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"license": "GNU GPL v2",
"license": "GPL-2.0-only",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants