Giter Club home page Giter Club logo

project's People

Contributors

creocoder avatar dac514 avatar davidbyoung avatar mgampkay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

project's Issues

Why do you include the autoloader in the config paths file?

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.

.gitignore missing from new projects

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.

Cannot use invokable method (__invoke) at route

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']);

Issues with the `tmp/framework/http/views/` directory

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

environment config files

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.