Unverified Commit 50d3c465 authored by Marco Pivetta's avatar Marco Pivetta Committed by GitHub

Merge pull request #3319 from garak/patch-1

remove ClassLoader
parents b74a1925 0da71631
...@@ -25,19 +25,13 @@ The following database vendors are currently supported: ...@@ -25,19 +25,13 @@ The following database vendors are currently supported:
The Doctrine 2 database layer can be used independently of the The Doctrine 2 database layer can be used independently of the
object-relational mapper. In order to use the DBAL all you need is object-relational mapper. In order to use the DBAL all you need is
the ``Doctrine\Common`` and ``Doctrine\DBAL`` namespaces. Once you the class loader provided by Composer, to be able to autoload the classes:
have the Common and DBAL namespaces you must setup a class loader
to be able to autoload the classes:
.. code-block:: php .. code-block:: php
<?php <?php
use Doctrine\Common\ClassLoader;
require_once 'vendor/autoload.php';
require '/path/to/doctrine/lib/Doctrine/Common/ClassLoader.php';
$classLoader = new ClassLoader('Doctrine', '/path/to/doctrine');
$classLoader->register();
Now you are able to load classes that are in the Now you are able to load classes that are in the
``/path/to/doctrine`` directory like ``/path/to/doctrine`` directory like
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment