psr-4 Questions
2
I have a project that have multiple subfolders. In one of the folders they are some "addons". All of these addons have a composer.json and a vendor-folder. I now wanted to build my own addon and cr...
Stewardess asked 13/10, 2015 at 8:12
1
Solved
I'm using Windows 10. After making a folder src in the root directory I created two files in it.
Directory Structure (Before running composer install):
│
├── composer.json
├── run.php
│
└── src
...
Insult asked 22/10, 2015 at 19:29
1
Solved
I have my project structure like so:
src/
├─ Model/
└─ User.php
My User.php file looks like this:
<?php
namespace Bix\Model;
class User {
And my composer.json autoloader is this:
"au...
Benzyl asked 9/5, 2015 at 6:24
1
Solved
Is it possible use multiple classes under the same namespace, in the same file? I want to do something like this:
<?php
namespace MyNamespace\Helpers\Exceptions
use Exception;
class Custom...
Loci asked 13/3, 2015 at 13:35
1
Solved
I run a portail with composer's autoloading class system:
"autoload": {
"psr-4": {
"Portal\\": "src/"
}
}
It works when I run composer.phar dump -o, for instance my class Boostrap is well ref...
Knack asked 19/2, 2015 at 13:29
1
Solved
I use the following directory structure based on my understanding of how namespaces in PHP work:
project_root
app/
| lib/
| | MyCompany/
| | | Utility/
| | | | Logger.php
| | | Core/
| | | ...
Garamond asked 6/1, 2015 at 15:48
1
Solved
I am using in a project a custom repository in github that contains my set of instruments.
The project correctly imports the package inside the /vendor directory,but i cannot use any of the class,...
Serdab asked 1/8, 2014 at 9:14
2
Solved
1
Solved
I have the follow project structure:
- root
|- src <- Application specifc source
|- [...]
|- tests
|- [...]
|- Vendor
|- myusername <- shared packages for all projects
|- src
|- MyNames...
Oswin asked 3/4, 2014 at 14:12
© 2022 - 2024 — McMap. All rights reserved.