"Web" and "online" are two closely associated terms, downright synonymous to many people. So why on earth would we talk about "offline" web technologies, and what does the term even mean?
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
class AcmeClass { | |
public function getCurrentUser() | |
{ | |
return $this->container->get('security.context')->getToken()->getUser(); | |
} | |
} |
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
class AcmeClass { | |
public function isAuthenticated() | |
{ | |
return !$this->container->get('security.context')->isGranted('IS_AUTHENTICATED_ANONYMOUSLY'); | |
} | |
} |
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
class Acme | |
{ | |
public function isGranted($role) | |
{ | |
return $this->container->get('security.context')->isGranted($role); | |
} | |
} |
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
SET foreign_key_checks =0; | |
DROP TABLE `table_name` ; | |
DELETE FROM `table_name` WHERE id = 1; | |
SET foreign_key_checks =1; |
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
mysql -u database_user_name -p -D database_name < complete_file_path_with_file_name_and_extension | |
Here | |
u stands for User | |
p stands for Password | |
D stands for Database | |
Complete file path with name and extension can be like |
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
Windows: | |
1. Open cmd | |
2. Type "ipconfig /flushdns" | |
Google Chrome: | |
1. Navigate to chrome://net-internals/#dns | |
2. Press the "Clear host cache" button. |
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 -d memory_limit=-1 /usr/local/bin/composer update --verbose --profile |
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 Acme\MyBundle\Serializer\Handler; | |
use JMS\Serializer\Handler\SubscribingHandlerInterface; | |
use JMS\Serializer\EventDispatcher\Event; | |
use JMS\Serializer\GraphNavigator; | |
use JMS\Serializer\XmlSerializationVisitor; | |
use JMS\Serializer\GenericSerializationVisitor; |
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 Gitonomy\Bundle\CoreBundle\Serializer\Normalizer; | |
use Doctrine\Common\Persistence\ManagerRegistry; | |
use Symfony\Component\Serializer\Normalizer\NormalizerInterface; | |
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface; | |
class EntitiesNormalizer implements NormalizerInterface, DenormalizerInterface | |
{ |
OlderNewer