This file contains 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
private function walk($menu) | |
{ | |
foreach ($menu->getChildren() as $childNode) { | |
if($childNode->hasChildren()) | |
{ | |
$childNode->setAttribute('class','dir'); | |
} | |
$this->walk($childNode); | |
} |
This file contains 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
load 'deploy' if respond_to?(:namespace) # cap2 differentiator | |
Dir['vendor/bundles/*/*/recipes/*.rb'].each { |bundle| load(bundle) } | |
load Gem.find_files('symfony2.rb').last.to_s | |
# Change ACL on the app/logs and app/cache directories | |
after "deploy:finalize_update" do | |
run "setfacl -R -m u:www-data:rwx -m u:#{user}:rwx #{latest_release}/#{cache_path} #{latest_release}/#{log_path}" | |
run "setfacl -dR -m u:www-data:rwx -m u:#{user}:rwx #{latest_release}/#{cache_path} #{latest_release}/#{log_path}" | |
end |
This file contains 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
fm_elfinder: | |
locale: %locale% | |
editor: tinymce4 # other choices are tinymce or simple | |
compression: false | |
include_assets: true | |
showhidden: false | |
fullscreen: true | |
connector: | |
debug: false # defaults to false | |
roots: # at least one root must be defined |
This file contains 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 | |
namespace FM\MenuBundle\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
use Doctrine\Common\Collections\ArrayCollection; | |
use Knp\Menu\NodeInterface; | |
use Knp\Menu\MenuItem as BaseMenuItem; | |
use Knp\Menu\ItemInterface; | |
use Symfony\Component\Validator\Constraints as Assert; |
This file contains 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
fm_elfinder: | |
locale: %locale% | |
editor: ckeditor # other choices are tinymce or simple | |
compression: false | |
include_assets: true | |
fullscreen: true | |
connector: | |
debug: true # defaults to false | |
roots: # at least one root must be defined <-- roots section | |
uploads: |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
services: | |
gelf.udp.transport: | |
class: Gelf\Transport\UdpTransport | |
gelf.publisher: | |
class: Gelf\Publisher | |
arguments: [@gelf.udp.transport] | |
monolog.gelf_handler: | |
class: Monolog\Handler\GelfHandler | |
arguments: [@gelf.publisher] | |
This file contains 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
fm_bbcode: | |
filter_sets: | |
my_default_filter: | |
strict: false # if you want to parse attr values without quotes | |
locale: en | |
xhtml: false | |
filters: [ default, block, code, email, image, list, url ] | |
hooks: [emoticon] | |
emoticon: | |
resource: %kernel.root_dir%/config/emoticons.yml |
This file contains 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
stfalcon_tinymce: | |
include_jquery: true | |
tinymce_jquery: true | |
selector: ".tinymce" | |
theme: | |
simple: ~ | |
advanced: | |
plugins: | |
- "advlist autolink lists link image charmap print preview hr anchor pagebreak" | |
- "searchreplace wordcount visualblocks visualchars code fullscreen" |
This file contains 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 | |
namespace AppBundle\Service; | |
use FM\ElfinderBundle\Configuration\ElFinderConfigurationReader; | |
use FM\ElfinderBundle\Model\ElFinderConfigurationProviderInterface; | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
use Symfony\Component\HttpFoundation\RequestStack; | |
class ConfigurationReader extends ElFinderConfigurationReader |
OlderNewer