<?php // Composer autoload require __DIR__ . '/vendor/autoload.php'; use App\Application; // Init the application $app = new Application(); // Run the application $app->run();
<?php require "..\\..\\bootstrap.php"; use App\Application; Application::run(); header("Content-Type: text/xml; charset=utf-8"); $httpHost = Application::$config['httpHostWsdl']; $SOAPServerFilePath = Application::$config['SOAPServerFilePath']; echo <<<EOD <?xml version="1.0" encoding="utf-8"?> <definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="{$httpHost}/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" name="SmsWsdl" xmlns="http://schemas.xmlsoap.org/wsdl/"> <types> <xs:schema elementFormDefault="qualified" xmlns:tns="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="{$httpHost}/"> <xs:complexType name="Message"> <xs:sequence> <xs:element name="phone" type="xs:string" minOccurs="1" maxOccurs="1" /> <xs:element name="text" type="xs:string" minOccurs="1" maxOccurs="1" /> <xs:element name="date" type="xs:dateTime" minOccurs="1" maxOccurs="1" /> <xs:element name="type" type="xs:decimal" minOccurs="1" maxOccurs="1" />
<?php require_once "../bootstrap.php"; require_once "../library/View.php"; require_once '../vendor/autoload.php'; require_once "../library/Database.php"; require_once "../library/Route.php"; require_once "../routes.php"; spl_autoload_register(function ($className) { $namespace = str_replace("\\", "/", __NAMESPACE__); $className = str_replace("\\", "/", $className); $class = "../models/" . "{$className}.php"; if (file_exists($class)) { require $class; } }); use App\Application; $application = new Application(); $application->run();