Copy this text file to a file named YourName_Midterm_Part1.txt. For example, JoeMcCullough_Midterm_Part1.txt. You will provide your answers to the problems in the "Answer:" sections indicated.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerName symfony.vm | |
ServerAlias symfony.vm | |
DocumentRoot /var/www/symfony/web | |
<Directory /var/www/symfony/web> | |
DirectoryIndex app_dev.php | |
Options Indexes FollowSymLinks MultiViews | |
AllowOverride All | |
Order allow,deny |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name symfony.vm; | |
root /usr/share/nginx/html/web; | |
error_log /var/log/nginx/symfony.error.log; | |
access_log /var/log/nginx/symfony.access.log; | |
rewrite ^/index\.php/?(.*)$ /$1 permanent; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Symfony\Component\Debug\Debug; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\ClassLoader\ApcClassLoader; | |
$env = getenv('ENVIRONMENT'); | |
if (!isset($env) || empty($env)) { | |
die('Please set environment variable in nginx like so: fastcgi_param ENVIRONMENT prod;'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": { | |
"common": "Austria", | |
"official": "Republic of Austria", | |
"native": { | |
"bar": { | |
"official": "Republik Österreich", | |
"common": "Österreich" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require('vendor/autoload.php'); | |
require('config.php'); | |
$mail = new PHPMailer(); | |
$mail->IsSMTP(); | |
$mail->CharSet = 'UTF-8'; | |
$mail->Host = "smtp.gmail.com"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.hostname = "symfony.vm" | |
config.vm.box = "sameg14/symfony2" | |
config.vm.network "private_network", ip: "10.10.10.24" | |
config.vm.synced_folder "symfony2", "/var/www/symfony2" | |
config.vm.provider "virtualbox" do |vb| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"redeemed":false, | |
"id":"a02F000000ONRThIAP", | |
"title":"House-Made Guacamole", | |
"sub_title":"$2 Off", | |
"offer_description":"any ONE (1) tub House-Made Guacamole", | |
"mobile_web_info":"", | |
"terms_and_conditions":"Save $2 when you buy any one (1) tub House-Made Guacamole. Coupon good one time only. Valid 2/3/2016\u20132/9/2016 in participating U.S. Whole Foods Market\u00ae stores only. Valid customer barcode must be presented at checkout. Coupon valid for all sizes and varieties. Product selection and availability varies by location. Offer will be applied at checkout during the qualifying shop. No rain checks. Cannot be combined with any other offer or applied to previous orders. Void where prohibited.", | |
"start_date":"2016-02-03T00:00:00.000Z", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"365.generic":[ | |
{ | |
"365_affinity":"bool" | |
}, | |
{ | |
"365_insight":"bool" | |
} | |
], | |
"esp.generic":[ |