File: bootstrap.php

Recommend this page to a friend!
  Classes of Axel Alexnder  >  Connection Factory  >  bootstrap.php  >  Download  
File: bootstrap.php
Role: Auxiliary script
Content type: text/plain
Description: inicial
Class: Connection Factory
Connect to database and run queries using Doctrine
Author: By
Last change: inicializador
Date: 4 years ago
Size: 776 bytes
 

Contents

Class file image Download
<?php

// fa?a o donwload dos pacotes doctrine
require_once('lib/Doctrine/Common/ClassLoader.php');
require_once
"entities/Notificacao.php";
   



use
Doctrine\Common\ClassLoader,
   
Doctrine\ORM\Configuration,
   
Doctrine\ORM\EntityManager,
   
Doctrine\DBAL\Types\Type,
   
Doctrine\Common\Cache\ArrayCache;

use
Doctrine\ORM\Tools\Setup;

//register Doctrine
$doctrineClassLoader = new ClassLoader('Doctrine', __DIR__ . '/lib/');
$doctrineClassLoader->register();
// register Symfony
$doctrineClassLoader = new ClassLoader('Symfony', __DIR__ . '/lib/Doctrine/');
$doctrineClassLoader->register();
   
// register entities
$doctrineClassLoader = new ClassLoader('Entities', __DIR__ . '/entities/');
$doctrineClassLoader->register();

?>

For more information send a message to info at phpclasses dot org.