On 22 February 2014 21:32, Mr User [via Zend Framework Community] <
[email protected]> wrote:

> Hello everyone
>
> ok let's go strait to the point so i want to customize my ZF2 instalation
> but i couldn't find any kind of documentaion so let me tell you first what
> i did
>

What exactly do you mean by "customize my ZF2 instalation"? What is being
changed?


> i installed the ZendSkeletonApplication correctly and everything was good
> i was able to view the index page from my browser so i wanted to change the
> zf2 library location and i changed it to /usr/ZF2


You are not supposed to do that anymore. Global library installations is a
bad idea in most cases - ZF2 allows you to do that, but you must have
strong reasoning to actually apply that.


> after that i changed my httpd.conf by adding  SetEnv ZF2_PATH /usr/ZF2 and
> of course also my include_path in php.ini and i again i was able to view
> the index page so i said i should now remove vendor directory which i
> wanted in the first place one i did that nothing seem to work i opened the
> init_autoloader.php and guess what the probleme is in this 2 lines
>
> if (file_exists('vendor/autoload.php')) {
>     $loader = include 'vendor/autoload.php';
> } ==> it was autoloading
>
> i copied back my vendor directory so that i can study where do autoloading
> need this vendor directory and it seems that it does need it heir
>
> // autoload_namespaces.php @generated by Composer
>
> $vendorDir = dirname(dirname(__FILE__));
> $baseDir = dirname($vendorDir);
>
> return array(
>     'Zend\\' => array($vendorDir .
> '/zendframework/zendframework/library'),
> );
>
>
> the probleme is whenever i try to change the array so that it will pont to
> my new library location the zf2 breakdown but when i channged back
> everything work
>

That is normal, composer is not designed for global includes


>
> So now the questions ?
>
> 1-can someone plz explain to me why this is happening
>

Composer installs dependencies per-project.


> 2-can you plz tell me how to get ride of this vendor directory
>
>
You shouldn't. I would help you on that only if I had an exact reasoning on
why you are trying to do that.



Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/




--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/customize-ZF2-tp4661729p4661731.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to