Skip to content

Commit 3324abd

Browse files
committed
Ignore var dir
1 parent 25c2d55 commit 3324abd

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ php-git-hooks.yml
77
# composer.lock
88
#Entry generated by php-git-hooks tool.
99
.guard_coverage
10+
var/cache
11+
var/logs

app/AppKernel.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ public function registerBundles()
1919
];
2020
}
2121

22+
public function getCacheDir()
23+
{
24+
return dirname(__DIR__).'/var/cache/'.$this->getEnvironment();
25+
}
26+
27+
public function getLogDir()
28+
{
29+
return dirname(__DIR__).'/var/logs';
30+
}
31+
32+
2233
/**
2334
* Loads the container configuration.
2435
*

0 commit comments

Comments
 (0)