opulencephp / project Goto Github PK
View Code? Open in Web Editor NEWAn empty project that uses the Opulence framework
Home Page: https://www.opulencephp.com
License: MIT License
An empty project that uses the Opulence framework
Home Page: https://www.opulencephp.com
License: MIT License
In this file you directly call the autoloader.
What if you wanted to parse that config somewhere else? In a bridge project for instance (where you're connecting say a forum & your custom site together) and you needed some settings from that file? It would automatically call the autoloader. Seems like this was a temporary solution that needs to be moved elsewhere imho.
The recommended install method (composer create-project) ignores the .gitignore file, but the .gitignore file is pretty standard stuff. I'm assuming it's left out because people may not use git and therefore wouldn't need it?
I would think it's easier for the fewer people who don't need it to delete it than for the majority of people who will need it to add it back in. It's not a huge hassle, but I personally have found myself copying and pasting it a few times now.
When I use invokable method in controller class, I show this error
Type error: ReflectionFunction::__construct() expects parameter 1 to be string, object given
my controller class
<?php
namespace Project\Application\Http\Controllers;
use Opulence\Http\Responses\JsonResponse;
use Opulence\Routing\Controller;
class MyController
{
public function __invoke()
{
return new JsonResponse([]);
}
}
and the routes.php
file
$router->post('/test', 'MyController@__invoke', ['name' => 'my.create']);
When using the skeleton project I expect all files (except the rules setup in .gitignore) to be something I can commit to my own repo. I am having issues with the tmp/framework/http/views/
directory.
Here are some test cases:
composer create-project opulence/project --prefer-dist
ls -a project/tmp/framework/http/views/
Expected: This .gitignore file.
Actual: The .gitignore has been deleted.
cd project/tmp/framework/http/views/
wget https://raw.githubusercontent.com/opulencephp/Project/1.0/tmp/framework/http/views/.gitignore
cd ../../../../
git init
git add -A && git commit -m "Test"
php -S localhost:8888 -t ./public/
// Load webpage in browser
^c
git status
Expected: No changes.
Actual: deleted: tmp/framework/http/views/.gitignore + untracked md5 looking things
rm -rf tmp/framework/http/views
php -S localhost:8888 -t ./public/
// Load webpage in browser
Expected: Webpage.
Actual: Failed to run tasks mkdir(): No such file or directory
Is there a reason the environment config files are hidden (begin with a ".")? Opulence doesn't use normal .env files, so compatibly with other tools for .env doesn't seem to be an issue. Is there a reason besides convention?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.