From 142019e022169532a2bd6a6e5f5a04ef25c9ac9b Mon Sep 17 00:00:00 2001 From: Douglas Silva Date: Tue, 17 Mar 2020 13:24:56 -0300 Subject: [PATCH] Updated instructions and updated copyright year --- README.md | 14 ++++---------- src/Fragments/Component/Routing/RequestContext.php | 2 +- src/Fragments/Component/Routing/RequestMatcher.php | 2 +- src/Fragments/Component/Routing/Route.php | 2 +- src/Fragments/Component/Routing/Router.php | 2 +- src/Fragments/Component/Routing/XMLParser.php | 2 +- .../SessionManagement/Init/AbstractSessionInit.php | 2 +- .../SessionManagement/Init/SessionStrict.php | 2 +- .../SessionManagement/Init/SessionUnsafe.php | 2 +- .../Component/SessionManagement/Session.php | 2 +- 10 files changed, 13 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 27d1c46..f502722 100644 --- a/README.md +++ b/README.md @@ -7,18 +7,12 @@ Fragments aims to be a small framework for web applications. Keep in mind that t - PHP XML extension. This package is called `php-xml` on Ubuntu. ## Getting started -Create a blank project: +1. Create a blank project: `composer create-project crimsonking/fragments-skeleton ` -Configure your web server so that its root directory is `/public`. As for the directory settings, here's how you should configure it on Apache: -``` -AllowOverride None -Require all granted -Allow from All -FallbackResource /index.php -``` +2. Configure your web server so that its root directory is `/public`. -Create `/config/database.ini` with the following lines to configure database connection details: +3. Create `/config/database.ini` with the following lines to configure database connection details: ``` pdo_driver = mysql database_name = fragments @@ -28,7 +22,7 @@ username = root password = root ``` -Add routes in the file `/config/routes.xml` and start building your first controller at `/src/Controller/`. You can also try our [Fragments Demo](https://github.com/o-alquimista/fragments-demo) application to get an idea of how things work. +4. Add routes in the file `/config/routes.xml` and start building your first controller at `/src/Controller/`. You can also try our [Fragments Demo](https://github.com/o-alquimista/fragments-demo) application to get an idea of how things work. ## License Copyright 2019-2020 Douglas Silva (0x9fd287d56ec107ac) diff --git a/src/Fragments/Component/Routing/RequestContext.php b/src/Fragments/Component/Routing/RequestContext.php index 5c76ead..eb92dbb 100644 --- a/src/Fragments/Component/Routing/RequestContext.php +++ b/src/Fragments/Component/Routing/RequestContext.php @@ -1,7 +1,7 @@