class Symfony

Public Class Methods

cache_clear(environment) click to toggle source
# File lib/symfony/symfony.rb, line 28
def self.cache_clear(environment)
    puts '---- Warming the Symfony Cache'
    fail 'Failed to warm the Symfony Cache' unless system "app/console cache:clear -e #{environment}"
end
cache_warm(environment) click to toggle source
# File lib/symfony/symfony.rb, line 23
def self.cache_warm(environment)
    puts '---- Warming the Symfony Cache'
    fail 'Failed to warm the Symfony Cache' unless system "app/console cache:warm -e #{environment}"
end
code_sniffer() click to toggle source
# File lib/symfony/symfony.rb, line 16
def self.code_sniffer
    puts '---- Getting latest SensioLabs Code Sniffer'
    fail 'Failed fetching the code sniffer!' unless system 'curl http://get.sensiolabs.org/php-cs-fixer.phar -o php-cs-fixer'
    fail 'Coding standards failed!' unless system 'php php-cs-fixer fix src/ --dry-run'
    fail 'Clean up failed!' unless system 'rm php-cs-fixer'
end
doctrine() click to toggle source
# File lib/symfony/symfony.rb, line 3
def self.doctrine
    Doctrine
end
fos_oauth() click to toggle source
# File lib/symfony/symfony.rb, line 7
def self.fos_oauth
    FosOAuth
end
install_assets() click to toggle source
# File lib/symfony/symfony.rb, line 33
def self.install_assets
    puts '---- Installing Assets'
    fail 'Failed to install assets' unless system 'app/console assets:install'
end
security_check() click to toggle source
# File lib/symfony/symfony.rb, line 11
def self.security_check
    puts '---- Running SensioLabs bundle security checker'
    fail 'Security check failed!' unless system 'app/console security:check'
end
start_server() click to toggle source
# File lib/symfony/symfony.rb, line 38
def self.start_server
    puts '---- Starting PHP Server'
    fail 'Failed to start server' unless system 'app/console server:start'
end
stop_server() click to toggle source
# File lib/symfony/symfony.rb, line 43
def self.stop_server
    puts '---- Stopping PHP Server'
    fail 'Failed to stop server' unless system 'app/console server:stop'
end