From 4a9c5210c5878a559c6410f38af46e9b29d0db47 Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Fri, 17 Nov 2017 15:55:30 -0500 Subject: [PATCH] Minor code cleanup --- .gitignore | 1 + app/Resources/views/previouslyownedflash/index.html.twig | 8 +------- src/CameraBundle/Entity/PreviouslyOwnedFlash.php | 2 +- web/app_dev.php | 3 --- 4 files changed, 3 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 2f75ca1..2a3be65 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ !var/SymfonyRequirements.php /vendor/ /web/bundles/ +/**/*.php~ \ No newline at end of file diff --git a/app/Resources/views/previouslyownedflash/index.html.twig b/app/Resources/views/previouslyownedflash/index.html.twig index 13af562..b938181 100644 --- a/app/Resources/views/previouslyownedflash/index.html.twig +++ b/app/Resources/views/previouslyownedflash/index.html.twig @@ -3,7 +3,7 @@ {% block body %}

Previously Owned Flashes

- +
@@ -49,10 +49,4 @@ {% endfor %}
Actions
- - {% endblock %} diff --git a/src/CameraBundle/Entity/PreviouslyOwnedFlash.php b/src/CameraBundle/Entity/PreviouslyOwnedFlash.php index 10c996f..c8d10aa 100644 --- a/src/CameraBundle/Entity/PreviouslyOwnedFlash.php +++ b/src/CameraBundle/Entity/PreviouslyOwnedFlash.php @@ -10,7 +10,7 @@ use Doctrine\ORM\Mapping as ORM; * @ORM\Table(name="previously_owned_flash", schema="camera") * @ORM\Entity */ -class PreviouslyOwnedFlash extends Flash +class PreviouslyOwnedFlash { use PurchasePriceTrait; diff --git a/web/app_dev.php b/web/app_dev.php index 9823582..42dbe0f 100644 --- a/web/app_dev.php +++ b/web/app_dev.php @@ -7,9 +7,6 @@ require __DIR__.'/../vendor/autoload.php'; Debug::enable(); $kernel = new AppKernel('dev', true); -if (PHP_VERSION_ID < 70000) { - $kernel->loadClassCache(); -} $request = Request::createFromGlobals(); $response = $kernel->handle($request); $response->send();