autoload Questions
3
Solved
My issue is I have a package which isn't a repository and I am trying to get it to play nice with Laravel and composer. It is still located under the vendor folder, the only issue is that if I simp...
Nimrod asked 19/3, 2014 at 14:54
4
Solved
Quote from Autoloading Classes :
Many developers writing object-oriented applications create one PHP
source file per class definition. One of the biggest annoyances is
having to write a long l...
1
Solved
I am creating a PHP project and want to implement PSR-4 autoloading.
I don't know which files I need to create in the vendor directory to implement autoloading for class files.
Stiltner asked 29/3, 2020 at 18:23
3
Solved
I can't get around an issue instantiating a new class by using a string variable and PHP 5.3. namespaces. For example, this works;
$class = 'Reflection';
$object = new $class();
However, this do...
Tirzah asked 21/2, 2011 at 23:10
6
Solved
Currently I load in all my classes by including a "all.inc.php" file on every page of my site, this file then goes on to include all the config, classes, functions, etc. that I will use on the whol...
2
Solved
I'm working with an initializer that does some monkey patching on app start by including some app concerns into a third party lib. Basically:
# config/initializers/my_initializer.rb
class SomeExt...
Areaway asked 31/5, 2019 at 21:54
3
Solved
i've troube with the autoloading of composer as the autoloader can't resolve Doctrine\ORM\Mapping\Table.
For the Unittests i have created doctrine entity classes with typical Annotations:
<?php...
Indemnification asked 19/9, 2014 at 15:20
4
Solved
I have a Customer_ratings model that allows users to leave feedback on each other. The web app is working properly, and feedback is collected, stored and displayed.
I wanted to go in and delete s...
Amaurosis asked 31/3, 2014 at 23:0
1
I try to autoload my custom pdo class with composer.
Ran the following command to update autoload:
compser update
composer install
Both seem to work, no error prompted. But,
vendor/composer/aut...
Shroud asked 12/1, 2016 at 16:4
1
Solved
I have a Laravel 5.8 project that is dependent on a private package.
When I run composer install the package is installed and shows up in the vendor folder.
project composer.json
{
...
"requ...
Somewhere asked 30/10, 2019 at 13:9
4
Solved
The following problem: I have defined a classmap in my composer.json:
"autoload": {
"classmap": [
"app/controllers",
"app/models",
"app/helper.php"
]
}
However, when I create a new file in...
Tereasaterebene asked 2/9, 2014 at 8:31
11
Solved
I encouter a problem since this morning, after I migrated my website from my local machine to the server.
To replace the context, I developed a website with the framework CodeIgniter, and everythi...
Unnerve asked 13/7, 2011 at 14:23
2
We are using sqlalchemy's autoload feature to do column mapping to prevent hardcoding in our code.
class users(Base):
__tablename__ = 'users'
__table_args__ = {
'autoload': True,
'mysql_engine...
Priscella asked 2/8, 2012 at 20:44
1
I'm having issues using the Codeception autoloader to load some abstract test classes. The reason for the abstract class is to mimic the structure of classes that are used in the application to cut...
Niu asked 19/1, 2015 at 7:24
5
Solved
I have just installed PHPUnit version 3.7.19 by Sebastian Bergmann via Composer and have written a class I would like to unit test.
I would like to have all my classes autoloaded into each unit tes...
Bostick asked 29/3, 2013 at 19:46
6
Solved
I have the need to load a view from outside the scope of:
$this->load->view();
which appears to work from base/application/views directory. How can I access a view from outside the /appli...
Danedanegeld asked 28/6, 2013 at 6:27
1
Solved
I'm working on a simple project using PHP and I'm using PSR-4 autoloading. I just wonder if there's a way to run composer dump-autoload -o on composer install, so that new users won't need to type ...
Silver asked 5/1, 2019 at 19:30
4
I would like to start learning Codeigniter. But it seems that Codeigniter has not support for installation via Composer. When I search in Google I found this link. It seems that Codeigniter has not...
Barye asked 1/9, 2015 at 19:36
2
Solved
How can I autoload helper functions (outside of any class)? Can I specify in composer.json some kind of bootstrap file that should be loaded first?
Jammiejammin asked 11/6, 2014 at 19:29
1
Whenever I run composer update the 'Generating autoload files' part always takes forever (sometimes up to 2 full minutes). I've ran it with the --profile flag to pinpoint this issue.
I've read mul...
Vanpelt asked 31/10, 2018 at 16:25
2
Solved
I have my own little MVC framework and I use composer psr-4 autoloading.
On my own computer it works perfectly fine, but when I deployed it to my Ubuntu server it did not work anymore. (it doesn't...
Nightspot asked 15/1, 2018 at 2:56
4
Working on a inherited Laravel Spark project that contained two User models.
One is the standard Spark model inside the App directory but the other is inside App/Models. I have combined the two mo...
Carilyn asked 23/11, 2016 at 12:13
13
Solved
I get this error when I try to use autoload and namespaces:
Fatal error: Class 'Class1' not found in /usr/local/www/apache22/data/public/php5.3/test.php on line 10
Can anyone tell me what I am...
1
Solved
Can't import functions using the use function keywords described in PHP.net. Recreating the example locally is returning a PHP Fatal error: Uncaught Error: Call to undefined function.
composer...
Mandy asked 26/7, 2018 at 21:8
1
Solved
For example, evil is autoload,
Some blogs/threads will use
(require 'evil)
(evil-mode 1)
to enable evil mode.
AFAIK, Elisp is lisp2 and evil-mode is also a function, so doesn't need setq.
(...
© 2022 - 2024 — McMap. All rights reserved.