Minor code cleanup

This commit is contained in:
Timothy Warren 2017-11-17 15:55:30 -05:00
parent 5e42f6b833
commit 4a9c5210c5
4 changed files with 3 additions and 11 deletions

1
.gitignore vendored
View File

@ -15,3 +15,4 @@
!var/SymfonyRequirements.php !var/SymfonyRequirements.php
/vendor/ /vendor/
/web/bundles/ /web/bundles/
/**/*.php~

View File

@ -3,7 +3,7 @@
{% block body %} {% block body %}
<h2>Previously Owned Flashes</h2> <h2>Previously Owned Flashes</h2>
<table> <table class="hover scroll stack">
<thead> <thead>
<tr> <tr>
<th>Actions</th> <th>Actions</th>
@ -49,10 +49,4 @@
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
<ul>
<li>
<a href="{{ path('previously-owned-flash_new') }}">Create a new previouslyOwnedFlash</a>
</li>
</ul>
{% endblock %} {% endblock %}

View File

@ -10,7 +10,7 @@ use Doctrine\ORM\Mapping as ORM;
* @ORM\Table(name="previously_owned_flash", schema="camera") * @ORM\Table(name="previously_owned_flash", schema="camera")
* @ORM\Entity * @ORM\Entity
*/ */
class PreviouslyOwnedFlash extends Flash class PreviouslyOwnedFlash
{ {
use PurchasePriceTrait; use PurchasePriceTrait;

View File

@ -7,9 +7,6 @@ require __DIR__.'/../vendor/autoload.php';
Debug::enable(); Debug::enable();
$kernel = new AppKernel('dev', true); $kernel = new AppKernel('dev', true);
if (PHP_VERSION_ID < 70000) {
$kernel->loadClassCache();
}
$request = Request::createFromGlobals(); $request = Request::createFromGlobals();
$response = $kernel->handle($request); $response = $kernel->handle($request);
$response->send(); $response->send();