Skip to content

Commit ba8911e

Browse files
committed
Updates starter content and latest versions of core and poppins
1 parent 3987278 commit ba8911e

19 files changed

+116
-205
lines changed

.php_cs.dist

Lines changed: 0 additions & 38 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
[![Build Status](https://travis-ci.org/moay/loxberry-php-base-plugin.svg?branch=master)](https://travis-ci.org/moay/loxberry-plugin-base-php)
2-
3-
![LoxBerry Poppins](https://user-images.githubusercontent.com/3605512/72723346-c37fb280-3b80-11ea-92c6-72d2498802bf.jpg)
1+
![LoxBerry Poppins](https://user-images.githubusercontent.com/3605512/72895177-1bebb700-3d1d-11ea-8393-7e9f3a7a0207.png)
42

53
# LoxBerry Poppins Base Plugin
64

7-
LoxBerry Poppins is a PHP Framework for LoxBerry plugins. This is the starter setup for new plugins.
5+
LoxBerry Poppins is a PHP Framework for LoxBerry plugins. This is the starter package for new plugins.
86

97
### Documentation
108

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"type": "project",
55
"require": {
66
"php": ">=7.2",
7-
"moay/loxberry-core": "dev-master#e656a83d61ce9d75f3ac0b9ce7bec213886a52f8",
8-
"moay/loxberry-poppins": "dev-master#97ab83c863f33604060cc5911544771484ff2caf",
7+
"moay/loxberry-core": "^1.0",
8+
"moay/loxberry-poppins": "^1.0",
99
"ext-json": "*"
1010
},
1111
"require-dev": {

composer.lock

Lines changed: 55 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/navigation.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1-
#home:
2-
# title: Welcome
3-
# route: home
1+
# Configure your admin navbar here, pass a title and a route to each item.
2+
# The navbar won't be displayed if not items are found
3+
4+
home:
5+
title: navbar.welcome
6+
route: home
7+
logs:
8+
title: navbar.logs
9+
route: logs

config/routes.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ home:
22
route: '/'
33
controller: 'LoxBerryPoppinsPlugin\Controller\DemoController'
44
action: 'demoPage'
5-
method: 'GET, POST'
6-
home2:
7-
route: '/test'
5+
6+
logs:
7+
route: '/logs'
88
controller: 'LoxBerryPoppinsPlugin\Controller\DemoController'
9-
action: 'demoPage'
9+
action: 'logsPage'
1010

1111
# Full configuration could look like this:
1212
# someRoute:

plugin.cfg

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
[AUTHOR]
2-
NAME=me
2+
NAME=Me
33
44

55
[PLUGIN]
6-
VERSION=0.4.0
6+
VERSION=1.0.0
77
NAME=myplugin
88
FOLDER=myplugin
99
TITLE=My Plugin
1010

1111
[AUTOUPDATE]
1212
AUTOMATIC_UPDATES=true
13-
RELEASECFG=https://raw.githubusercontent.com/moay/loxberry-php-base-plugin/master/resources/release.cfg
14-
PRERELEASECFG=https://raw.githubusercontent.com/moay/loxberry-php-base-plugin/master/resources/prerelease.cfg
13+
RELEASECFG=[URL TO YOUR release.cfg]
14+
PRERELEASECFG=[URL TO YOUR prerelease.cfg]
1515

1616
[SYSTEM]
1717
INTERFACE=2.0

resources/prerelease.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[AUTOUPDATE]
2-
VERSION=0.4.0
2+
VERSION=1.0.0
33

44
# Download URL of the ZIP Archive
5-
ARCHIVEURL=https://github.com/moay/loxberry-php-base-plugin/archive/master.zip
5+
ARCHIVEURL=https://github.com/moay/loxberry-php-base-plugin/archive/1.0.0.zip
66

77
# URL for further information about this release
88
INFOURL=https://github.com/moay/loxberry-php-base-plugin/releases

resources/release.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[AUTOUPDATE]
2-
VERSION=0.4.0
2+
VERSION=1.0.0
33

44
# Download URL of the ZIP Archive
5-
ARCHIVEURL=https://github.com/moay/loxberry-php-base-plugin/archive/0.4.0.zip
5+
ARCHIVEURL=https://github.com/moay/loxberry-php-base-plugin/archive/1.0.0.zip
66

77
# URL for further information about this release
88
INFOURL=https://github.com/moay/loxberry-php-base-plugin/releases

src/Controller/DemoController.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,14 @@ public function __construct(SettingsStorage $settings)
2424
*/
2525
public function demoPage()
2626
{
27-
if ($this->getRequest()->request->has('newFieldValue')) {
28-
$this->settings->set('fieldValue', $this->getRequest()->request->get('newFieldValue'));
29-
}
27+
return $this->render('pages/home.html.twig');
28+
}
3029

31-
return $this->render('pages/home.html.twig', ['settings' => $this->settings]);
30+
/**
31+
* @return Response
32+
*/
33+
public function logsPage()
34+
{
35+
return $this->render('pages/logs.html.twig');
3236
}
3337
}

0 commit comments

Comments
 (0)