-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
92 changed files
with
3,760 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,67 @@ | ||
# Sylius Blog Plugin | ||
<h1 align="center">Sylius Blog Plugin</h1> | ||
|
||
This plugin adds a blog to your Sylius project. It allows you to create blog articles, tags and authors. | ||
|
||
## Compatibility | ||
|
||
## Compatibility | ||
|
||
| Sylius Version | PHP Version | | ||
|---|---| | ||
| 1.12 | 8.1 - 8.2 | | ||
| 1.13 | 8.1 - 8.2 | | ||
|
||
## Installation | ||
|
||
TBD | ||
If you want to use our recipes, you can add recipes endpoints to your composer.json by running this command: | ||
|
||
```bash | ||
composer config --no-plugins --json extra.symfony.endpoint '["https://api.github.com/repos/monsieurbiz/symfony-recipes/contents/index.json?ref=flex/master","flex://defaults"]' | ||
``` | ||
|
||
Install the plugin via composer: | ||
|
||
```bash | ||
composer require monsieurbiz/sylius-blog-plugin:dev-master | ||
``` | ||
|
||
<!-- The section on the flex recipe will be displayed when the flex recipe will be available on contrib repo | ||
<details><summary>For the installation without flex, follow these additional steps</summary> | ||
--> | ||
|
||
Change your `config/bundles.php` file to add this line for the plugin declaration: | ||
|
||
```php | ||
<?php | ||
|
||
return [ | ||
//.. | ||
MonsieurBiz\SyliusBlogPlugin\MonsieurBizSyliusBlogPlugin::class => ['all' => true], | ||
]; | ||
``` | ||
|
||
Add the plugin's routing by creating a new file in `config/routes/monsieurbiz_sylius_blog_plugin.yaml` with the following content: | ||
|
||
```yaml | ||
imports: | ||
resource: '@MonsieurBizSyliusBlogPlugin/Resources/config/config.yaml' | ||
``` | ||
Add the plugin's routing by creating a new file in `config/routes/monsieurbiz_sylius_blog_plugin.yaml` with the following content: | ||
|
||
```yaml | ||
monsieurbiz_blog_plugin: | ||
resource: '@MonsieurBizSyliusBlogPlugin/Resources/config/routes.yaml' | ||
``` | ||
|
||
And finally, update your database: | ||
|
||
```bash | ||
bin/console doctrine:migrations:migrate | ||
``` | ||
|
||
|
||
## License | ||
|
||
This plugin is under the MIT license. | ||
Please see the [LICENSE](LICENSE) file for more information. | ||
Please see the [LICENSE](LICENSE) file for more information._ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
SYLIUS_FIXTURES_HOSTNAME=${SYMFONY_DEFAULT_ROUTE_HOST:-localhost} | ||
SYMFONY_IDE=phpstorm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
imports: | ||
monsieurbiz_blog_plugin: | ||
resource: '@MonsieurBizSyliusBlogPlugin/Resources/config/routes.yaml' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.